We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3874ffb + d80fec4 commit 24dbb42Copy full SHA for 24dbb42
src/Route.php
@@ -29,7 +29,7 @@ public static function parseRoutes(string $path): array {
29
if (str_contains($content, 'return ')) {
30
if (str_contains($content, '$this')) {
31
preg_match('/return ([^;]*);/', $content, $matches);
32
- return self::includeRoutes("<?php\nreturn ${matches[1]};");
+ return self::includeRoutes("<?php\nreturn $matches[1];");
33
}
34
return include($path);
35
} elseif (str_contains($content, 'registerRoutes')) {
0 commit comments