From eb35f124d6f531ed01e4eb8b6b5ac2fd31f85ac1 Mon Sep 17 00:00:00 2001 From: SonyPradana Date: Thu, 21 Sep 2023 21:24:30 +0700 Subject: [PATCH] chore, formatting: bump dependency friendsofphp/php-cs-fixer from 3.23 to 3.27 --- composer.json | 2 +- src/System/Router/RouteDispatcher.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) {