Skip to content

Commit

Permalink
Fix docblock for the event dispatcher (#52411)
Browse files Browse the repository at this point in the history
  • Loading branch information
seriquynh authored Aug 7, 2024
1 parent 5ae7da1 commit b5e1a9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function __construct(?ContainerContract $container = null)
/**
* Register an event listener with the dispatcher.
*
* @param \Closure|string|array $events
* @param \Closure|string|array|null $listener
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $events
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array|null $listener
* @return void
*/
public function listen($events, $listener = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Support\Testing\Fakes\EventFake;

/**
* @method static void listen(\Closure|string|array $events, \Closure|string|array|null $listener = null)
* @method static void listen(\Illuminate\Events\QueuedClosure|\Closure|string|array $events, \Illuminate\Events\QueuedClosure|\Closure|string|array|null $listener = null)
* @method static bool hasListeners(string $eventName)
* @method static bool hasWildcardListeners(string $eventName)
* @method static void push(string $event, object|array $payload = [])
Expand Down

0 comments on commit b5e1a9f

Please sign in to comment.