Fix bitwise opperator

This commit is contained in:
Dennis Eichhorn 2016-10-22 22:43:33 +02:00
parent 68051600a3
commit 0d667e4712

View File

@ -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);
}
}