Dispatcher::reset now is also chaineable

pull/538/head
fadrian06 12 months ago
parent cd79dc92b6
commit 31c690d17b

@ -239,10 +239,14 @@ class Dispatcher
/** /**
* Resets the object to the initial state. * Resets the object to the initial state.
*
* @return $this
*/ */
public function reset(): void public function reset(): self
{ {
$this->events = []; $this->events = [];
$this->filters = []; $this->filters = [];
return $this;
} }
} }

@ -8,3 +8,4 @@ parameters:
paths: paths:
- flight - flight
- index.php - index.php
treatPhpDocTypesAsCertain: false

Loading…
Cancel
Save