diff --git a/Router/Router.php b/Router/Router.php index fc91c146b..0145c3ead 100644 --- a/Router/Router.php +++ b/Router/Router.php @@ -146,6 +146,6 @@ class Router */ private function match(string $route, int $routeVerb, string $uri, int $remoteVerb = RouteVerb::GET) : bool { - return (bool) preg_match('~^' . $route . '$~', $uri) && ($routeVerb == RouteVerb::ANY || $remoteVerb & $routeVerb === $remoteVerb); + return (bool) preg_match('~^' . $route . '$~', $uri) && ($routeVerb == RouteVerb::ANY || ($remoteVerb & $routeVerb) === $remoteVerb); } }