solving the named parameters incompatibility

This commit is contained in:
MassimoI 2023-10-11 13:27:46 +02:00 committed by Kamil Wylegala
parent a75b4166b5
commit 1cd99ff3e0

View file

@ -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);
}