Without parentheses, it was interpreting Closure(): (void|mixed|callable)

pull/539/head
fadrian06 12 months ago
parent 84dbed0dc0
commit 72882b24de

@ -78,7 +78,7 @@ class Dispatcher
* Assigns a callback to an event.
*
* @param string $name Event name
* @param Closure(): (void|mixed)|callable $callback Callback function
* @param Closure(): (void|mixed) $callback Callback function
*
* @return $this
*/

Loading…
Cancel
Save