Skip to content

Commit

Permalink
Fix dynamic property creation deprecation warning from CakeEvent class
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosurita authored and kamilwylegala committed Dec 19, 2023
1 parent 0b0ec3e commit e712b2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Cake/Event/CakeEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit e712b2d

Please sign in to comment.