From 0d667e47129940348e66b10d0f2b88b4767c7074 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 22 Oct 2016 22:43:33 +0200 Subject: [PATCH] Fix bitwise opperator --- Router/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }