Open caendesilva opened 3 weeks ago
The current methods as follows:
public static function get(string $routeKey): ?Route
{
return static::getFacadeRoot()->get($routeKey);
}
/** @throws \Hyde\Framework\Exceptions\RouteNotFoundException */
public static function getOrFail(string $routeKey): Route
{
return static::getFacadeRoot()->getRoute($routeKey);
}
Could be merged and simplified like this:
public static function get(string $routeKey): Route
{
return static::getFacadeRoot()->getRoute($routeKey);
}
Considering this is quite a BC break for quite a small thing, we would need to carefully consider this
Originally posted by @caendesilva in https://github.com/hydephp/develop/issues/1731#issuecomment-2196324574