mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-14 19:08:25 +00:00
solving the named parameters incompatibility
This commit is contained in:
parent
a75b4166b5
commit
1cd99ff3e0
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ class CakeEventManager {
|
|||
break;
|
||||
}
|
||||
if ($listener['passParams'] === true) {
|
||||
$result = call_user_func_array($listener['callable'], $event->data);
|
||||
$result = call_user_func_array($listener['callable'], array_values($event->data));
|
||||
} else {
|
||||
$result = call_user_func($listener['callable'], $event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue