wip: 1682607562

This commit is contained in:
Victor Westerlund 2023-04-27 16:59:22 +02:00
parent 39ad645cda
commit 7df410bb59

View file

@ -43,7 +43,7 @@
} }
// Attempt to resolve Method from backed enum string, or return default // Attempt to resolve Method from backed enum string, or return default
private static function resolve_method(string $method): Method { private static function resolve_method(Method|string $method): Method {
return ($method instanceof Method) return ($method instanceof Method)
? $method ? $method
: Method::tryFrom($method) ?? (__CLASS__)::HTTP_DEFAULT_METHOD; : Method::tryFrom($method) ?? (__CLASS__)::HTTP_DEFAULT_METHOD;