Skip to content

Commit 4313dfa

Browse files
loks0nclaude
andcommitted
Drop redundant preparePath in Http::execute
$matchedPath is already the prepared form (the key from Router::$routes), so re-preparing it just returned the same string. Pass it straight to Route::getPathValues. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 03c51c2 commit 4313dfa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Http/Http.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,7 @@ public function execute(Route $route, Request $request, Response $response, stri
598598
$arguments = [];
599599
$groups = $route->getGroups();
600600

601-
$preparedPath = Router::preparePath($matchedPath);
602-
$pathValues = $route->getPathValues($request, $preparedPath[0]);
601+
$pathValues = $route->getPathValues($request, $matchedPath);
603602

604603
try {
605604
if ($route->getHook()) {

0 commit comments

Comments
 (0)