Skip to content

Commit

Permalink
solving the named parameters incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
impronta48 committed Oct 11, 2023
1 parent 78e22f1 commit 3795217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Event/CakeEventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function dispatch($event) {
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);
}
Expand Down

0 comments on commit 3795217

Please sign in to comment.