diff --git a/src/Dispatchers/WordpressDispatcher.php b/src/Dispatchers/WordpressDispatcher.php index fc86d23..ce6a143 100644 --- a/src/Dispatchers/WordpressDispatcher.php +++ b/src/Dispatchers/WordpressDispatcher.php @@ -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 diff --git a/src/Mixin.php b/src/Mixin.php index 89aeb6f..ae67185 100644 --- a/src/Mixin.php +++ b/src/Mixin.php @@ -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