reuse Dispatcher@get in Dispatcher@has

pull/721/head
fadrian06 2 months ago
parent 7379be00ac
commit bf3f86d619

@ -170,7 +170,7 @@ class Dispatcher
*/ */
public function has(string $name): bool public function has(string $name): bool
{ {
return isset($this->events[$name]); return $this->get($name) !== null;
} }
/** /**

Loading…
Cancel
Save