From 3ced257ad0dfc154d87473e3c3c5a3caae3de135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Papp=20P=C3=A9ter?= Date: Tue, 12 Jul 2022 09:10:37 +0200 Subject: [PATCH] Update Dispatcher.php --- src/Illuminate/Events/Dispatcher.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Events/Dispatcher.php b/src/Illuminate/Events/Dispatcher.php index 9ea600b..341767a 100644 --- a/src/Illuminate/Events/Dispatcher.php +++ b/src/Illuminate/Events/Dispatcher.php @@ -4,6 +4,7 @@ use yii\base\Component; use yii\base\Event; use yii\base\UnknownMethodException; +use Illuminate\Support\Arr; /** * @@ -155,6 +156,6 @@ protected function parseEventAndPayload($event, $payload) [$payload, $event] = [[$event], get_class($event)]; } - return [$event, array_wrap($payload)]; + return [$event, Arr::wrap($payload)]; } -} \ No newline at end of file +}