From e712b2da8927ad0bcfb146cf0601ad595b0e21db Mon Sep 17 00:00:00 2001 From: Diego Surita Date: Tue, 19 Dec 2023 18:22:36 +0000 Subject: [PATCH] Fix dynamic property creation deprecation warning from CakeEvent class --- lib/Cake/Event/CakeEvent.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 *