src/Chiron/Routing/Dispatcher.php
private function marshalFailedRoute(array $result): RouteResult
    {
        if ($result[0] === self::METHOD_NOT_ALLOWED) {
            return RouteResult::fromRouteFailure($result[1]);
        }

        return RouteResult::fromRouteFailure(RouteResult::HTTP_METHOD_ANY);
    }
private function marshalFailedRoute(array $result): RouteResult
    {
        if ($result[0] === self::METHOD_NOT_ALLOWED) {
            return RouteResult::fromRouteFailure($result[1]);
        }

        return RouteResult::fromRouteFailure(RouteResult::HTTP_METHOD_ANY);
    }
private function marshalFailedRoute ( array $ result ) : RouteResult { if ( $ result [ 0 ] === self :: METHOD_NOT_ALLOWED ) { return RouteResult :: fromRouteFailure ( $ result [ 1 ] ) ; } return RouteResult :: fromRouteFailure ( RouteResult :: HTTP_METHOD_ANY ) ; }
Marshal a routing failure result.

If the failure was due to the HTTP method, passes the allowed HTTP
methods to the factory.
Marshal a routing failure result .