diff --git a/composer.json b/composer.json index 4326ec0e..23765512 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require-dev": { "phpunit/phpunit": "^9.6", "mockery/mockery": "^1.6", - "friendsofphp/php-cs-fixer": "^3.23", + "friendsofphp/php-cs-fixer": "^3.27", "phpstan/phpstan": "^1.10", "rector/rector": "^0.17" }, diff --git a/src/System/Router/RouteDispatcher.php b/src/System/Router/RouteDispatcher.php index 258eb728..10b441b2 100644 --- a/src/System/Router/RouteDispatcher.php +++ b/src/System/Router/RouteDispatcher.php @@ -214,7 +214,7 @@ private function dispatch($basepath = '', $case_matters = false, $trailing_slash $route['expression'] = '^' . $route['expression']; // Add 'find string end' automatically - $route['expression'] = $route['expression'] . '$'; + $route['expression'] .= '$'; // Check path match if (preg_match('#' . $route['expression'] . '#' . ($case_matters ? '' : 'i') . 'u', $path, $matches)) {