diff --git a/framework/core/src/Http/RouteCollection.php b/framework/core/src/Http/RouteCollection.php index 795f72ef8..5c74900f8 100644 --- a/framework/core/src/Http/RouteCollection.php +++ b/framework/core/src/Http/RouteCollection.php @@ -1,5 +1,4 @@ reverse[$name][0]; array_walk($parts, [$this, 'fixPathPart'], $parameters); - $path = '/' . ltrim(implode('', $parts), '/'); - return $path; + + return '/' . ltrim(implode('', $parts), '/'); } }