The doc comment array<class-string, callable> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string, callable>.
The doc comment array<class-string, callable> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string, callable>.
Loading history...
32
*/
33
10
public function getAllHandlers(): array
34
{
35
10
return $this->handlers;
36
}
37
38
81
private function addBuiltInHandlers(): void
39
{
40
81
$this->handle(
41
81
NotFound404Exception::class,
42
81
static fn (NotFound404Exception $exception) => (new NotFound404ExceptionHandler())->__invoke($exception),
43
81
);
44
81
$this->handle(
45
81
Exception::class,
46
81
static fn (Exception $exception) => (new FallbackExceptionHandler())->__invoke($exception),