From 1cd99ff3e0233b8cdb3748f4ddf404c4e02535cd Mon Sep 17 00:00:00 2001 From: MassimoI Date: Wed, 11 Oct 2023 13:27:46 +0200 Subject: [PATCH] solving the named parameters incompatibility --- lib/Cake/Event/CakeEventManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Event/CakeEventManager.php b/lib/Cake/Event/CakeEventManager.php index 020304ccc..216c03131 100644 --- a/lib/Cake/Event/CakeEventManager.php +++ b/lib/Cake/Event/CakeEventManager.php @@ -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); }