Skip to content

Commit

Permalink
Update Dispatcher.php
Browse files Browse the repository at this point in the history
  • Loading branch information
papppeter committed Jul 12, 2022
1 parent b02e8f5 commit 3ced257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use yii\base\Component;
use yii\base\Event;
use yii\base\UnknownMethodException;
use Illuminate\Support\Arr;

/**
*
Expand Down Expand Up @@ -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)];
}
}
}

0 comments on commit 3ced257

Please sign in to comment.