src/Valkyrja/Routing/RouteCollection.php
public function staticRoute(string $method, string $path): ? Route
    {
        return $this->route($this->staticRoutes[$method][$path] ?? $path);
    }
public function staticRoute(string $method, string $path): ? Route
    {
        return $this->route($this->staticRoutes[$method][$path] ?? $path);
    }
Get a static route.

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

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