diff --git a/src/Events.php b/src/Events.php index 2ef2357..5bd839c 100644 --- a/src/Events.php +++ b/src/Events.php @@ -43,7 +43,7 @@ protected function emitOnce(string $event, array $arguments = []): void * * @throws InvalidArgumentException If the event name is not valid */ - public function on($event, callable $listener): static + public function on($event, callable $listener) { $this->assertValidEvent($event); $this->evenementUnvalidatedOn($event, $listener);