private static function errorHandler(ContainerInterface $container): ErrorHandlerInterface
    {
        if (!$container->has(ErrorHandlerInterface::class)) {
            return new ErrorHandler();
        }

        return $container->get(ErrorHandlerInterface::class);
    }
private static function errorHandler(ContainerInterface $container): ErrorHandlerInterface
    {
        if (!$container->has(ErrorHandlerInterface::class)) {
            return new ErrorHandler();
        }

        return $container->get(ErrorHandlerInterface::class);
    }
private static function errorHandler ( ContainerInterface $ container ) : ErrorHandlerInterface { if ( ! $ container -> has ( ErrorHandlerInterface :: class ) ) { return new ErrorHandler ( ) ; } return $ container -> get ( ErrorHandlerInterface :: class ) ; }
Return an instance of the ErrorHandlerInterface.

@throws ContainerExceptionInterface
@throws NotFoundExceptionInterface
Return an instance of the ErrorHandlerInterface .