for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Auth;
use App\Exception\UnauthorisedException;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
final class AuthRequestErrorHandler implements RequestHandlerInterface
{
public function handle(ServerRequestInterface $request): ResponseInterface
throw new UnauthorisedException();
}