diff --git a/lib/Cake/Event/CakeEvent.php b/lib/Cake/Event/CakeEvent.php index f1d8e3fe5..d05f4d351 100644 --- a/lib/Cake/Event/CakeEvent.php +++ b/lib/Cake/Event/CakeEvent.php @@ -47,6 +47,12 @@ class CakeEvent { */ public mixed $omitSubject; +/** + * PHP 8.2 deprecation notice: added to avoid `Creation of dynamic property ... is deprecated.` + * @var mixed + */ + public mixed $collectReturn; + /** * Name of the event *