diff --git a/src/Router.php b/src/Router.php index 48fb692..0b23b8c 100644 --- a/src/Router.php +++ b/src/Router.php @@ -75,7 +75,7 @@ class Router { foreach ($this->routes as $key => $value) { // Check if key contains a curly bracket, if not continue. We already checked above. - if (!strpos($key, '{')) continue; + if (strpos($key, '{') === false) continue; // Remove everything after the curly bracket, from key $keyPath = substr($key, 0, strpos($key, '{'));