src/Valkyrja/Routing/NativeRouter.php
protected function matchStaticRoute(string $path, string $method): ? Route
    {
        $route = null;

        // Let's check if the route is set in the static routes
        if (self::$collection->issetStaticRoute($method, $path)) {
            $route = $this->getMatchedStaticRoute($path, $method);
        }

        if (null !== $route && $this->isValidMethod($route, $method)) {
            return $route;
        }

        return null;
    }
protected function matchStaticRoute(string $path, string $method): ? Route
    {
        $route = null;

        // Let's check if the route is set in the static routes
        if (self::$collection->issetStaticRoute($method, $path)) {
            $route = $this->getMatchedStaticRoute($path, $method);
        }

        if (null !== $route && $this->isValidMethod($route, $method)) {
            return $route;
        }

        return null;
    }
Try to match a static route by path and method.

@param string $path   The path
@param string $method The method

@return null|Route
The route if found or null when no static route is
found for the path and method combination specified