From 2440eca0d7928e28864183cb8b17ed2639c24099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:28:42 +0100 Subject: [PATCH] Fix grammar in event dispatcher comment --- src/Illuminate/Events/Dispatcher.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Events/Dispatcher.php b/src/Illuminate/Events/Dispatcher.php index d04b7904d37b..48731abf8d3f 100755 --- a/src/Illuminate/Events/Dispatcher.php +++ b/src/Illuminate/Events/Dispatcher.php @@ -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),