Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Commit

Permalink
fixed type hints marking closures as wrong parameters for listen() (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Alkan authored Apr 22, 2021
1 parent 8358b06 commit e21b8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dispatchers/WordpressDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function hasListenerFor( $callable, $event ): bool {

/**
* @param string $event
* @param string|array $callable
* @param string|array|Closure $callable
*
* @throws \Exception
* @api
Expand Down
2 changes: 1 addition & 1 deletion src/Mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static function dispatcher()
* Register an event listener with the dispatcher.
*
* @param string $event
* @param string|array $callable
* @param string|array|\Closure $callable
*
* @return void
* @throws \Exception
Expand Down

0 comments on commit e21b8ed

Please sign in to comment.