Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ public function until($event, $payload = [])
*/
public function dispatch($event, $payload = [], $halt = false)
{
// When the given "event" is actually an object we will assume it is an event
// object and use the class as the event name and this event itself as the
// payload to the handler, which makes object based events quite simple.
// When the given "event" is actually an object, we will assume it is an event
// object, and use the class as the event name and this event itself as the
// payload to the handler, which makes object-based events quite simple.
[$isEventObject, $parsedEvent, $parsedPayload] = [
is_object($event),
...$this->parseEventAndPayload($event, $payload),
Expand Down
Loading