Fixed PHP 8.2 deprecation notices in CakeEvent class.

This commit is contained in:
Kamil Wylegala 2023-06-02 23:04:27 +02:00
parent b5ebe993ad
commit ba7d7f138f
2 changed files with 29 additions and 1 deletions

View file

@ -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.

View file

@ -23,7 +23,31 @@
*/
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
*
* @var string