private function registerErrorHandler(): void
    {
        $whoops = new Run();
        $whoops->pushHandler(new PrettyPageHandler());
        $whoops->register();

        $this->errorHandler = $whoops;
    }
private function registerErrorHandler(): void
    {
        $whoops = new Run();
        $whoops->pushHandler(new PrettyPageHandler());
        $whoops->register();

        $this->errorHandler = $whoops;
    }
private function registerErrorHandler ( ) : void { $ whoops = new Run ( ) ; $ whoops -> pushHandler ( new PrettyPageHandler ( ) ) ; $ whoops -> register ( ) ; $ this -> errorHandler = $ whoops ; }
Register the error handler.
Register the error handler .