diff --git a/README.md b/README.md index 08aefc5a8..f30695deb 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ It means that composer will look at `master` branch of repository configured und ## Changelog +### 2023-06-02 + +- Fixed PHP 8.2 deprecation notices in CakeEvent: `Creation of dynamic property ... is deprecated.` + ### 2023-02-19 - Fixed PHP 8.1 MySQL test suite. diff --git a/lib/Cake/Event/CakeEvent.php b/lib/Cake/Event/CakeEvent.php index 4a23756ef..f1d8e3fe5 100644 --- a/lib/Cake/Event/CakeEvent.php +++ b/lib/Cake/Event/CakeEvent.php @@ -23,6 +23,30 @@ */ class CakeEvent { +/** + * PHP 8.2 deprecation notice: added to avoid `Creation of dynamic property ... is deprecated.` + * @var mixed|true + */ + public mixed $break; + +/** + * PHP 8.2 deprecation notice: added to avoid `Creation of dynamic property ... is deprecated.` + * @var mixed|true + */ + public mixed $modParams; + +/** + * PHP 8.2 deprecation notice: added to avoid `Creation of dynamic property ... is deprecated.` + * @var array|mixed + */ + public mixed $breakOn; + +/** + * PHP 8.2 deprecation notice: added to avoid `Creation of dynamic property ... is deprecated.` + * @var array|mixed + */ + public mixed $omitSubject; + /** * Name of the event *