[ecs] little hack for the ecs
[CI SKIP]
This commit is contained in:
parent
c75fd2f10f
commit
af5b329878
1 changed files with 6 additions and 3 deletions
|
@ -10,7 +10,10 @@ use Lubian\AttributeMagic\Infrastructure\Route\HttpMethod;
|
|||
use Lubian\AttributeMagic\Infrastructure\WebApp\Request\RequestEvent;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
use function count;
|
||||
use function FastRoute\cachedDispatcher;
|
||||
use function is_array;
|
||||
use function is_string;
|
||||
|
||||
final readonly class HandlerResolver
|
||||
{
|
||||
|
@ -57,11 +60,11 @@ final readonly class HandlerResolver
|
|||
}
|
||||
|
||||
if (
|
||||
!is_array($routeInfo[1])
|
||||
! is_array($routeInfo[1])
|
||||
|| count($routeInfo[1]) !== 2
|
||||
|| !is_string($routeInfo[1][0])
|
||||
|| ! is_string($routeInfo[1][0])
|
||||
|| $routeInfo[1][0] === ''
|
||||
|| !is_string($routeInfo[1][1])
|
||||
|| ! is_string($routeInfo[1][1])
|
||||
|| $routeInfo[1][1] === ''
|
||||
) {
|
||||
$this->notFound($event);
|
||||
|
|
Loading…
Reference in a new issue