Skip to content

Commit 24dbb42

Browse files
Merge pull request #276 from nextcloud/chore/php/remove-8.2-deprecations
2 parents 3874ffb + d80fec4 commit 24dbb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function parseRoutes(string $path): array {
2929
if (str_contains($content, 'return ')) {
3030
if (str_contains($content, '$this')) {
3131
preg_match('/return ([^;]*);/', $content, $matches);
32-
return self::includeRoutes("<?php\nreturn ${matches[1]};");
32+
return self::includeRoutes("<?php\nreturn $matches[1];");
3333
}
3434
return include($path);
3535
} elseif (str_contains($content, 'registerRoutes')) {

0 commit comments

Comments
 (0)