Skip to content

Commit d59dc6a

Browse files
Merge branch '5.4' into 6.2
* 5.4: [DoctrineBridge] Work around "Doctrine\DBAL\Connection::getEventManager()" deprecations [Routing] Fix Psalm [Lock] Fix sprintf Fix Crawler::filter throw phpdoc
2 parents 69062e2 + 56bfc13 commit d59dc6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Matcher/Dumper/CompiledUrlMatcherDumper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ private function generateCompiledRoutes(): string
136136
foreach ($staticRoutes as $path => $routes) {
137137
$code .= sprintf(" %s => [\n", self::export($path));
138138
foreach ($routes as $route) {
139-
$code .= sprintf(" [%s, %s, %s, %s, %s, %s, %s],\n", ...array_map([__CLASS__, 'export'], $route));
139+
$r = array_map([__CLASS__, 'export'], $route);
140+
$code .= sprintf(" [%s, %s, %s, %s, %s, %s, %s],\n", $r[0], $r[1], $r[2], $r[3], $r[4], $r[5], $r[6]);
140141
}
141142
$code .= " ],\n";
142143
}
@@ -148,7 +149,8 @@ private function generateCompiledRoutes(): string
148149
foreach ($dynamicRoutes as $path => $routes) {
149150
$code .= sprintf(" %s => [\n", self::export($path));
150151
foreach ($routes as $route) {
151-
$code .= sprintf(" [%s, %s, %s, %s, %s, %s, %s],\n", ...array_map([__CLASS__, 'export'], $route));
152+
$r = array_map([__CLASS__, 'export'], $route);
153+
$code .= sprintf(" [%s, %s, %s, %s, %s, %s, %s],\n", $r[0], $r[1], $r[2], $r[3], $r[4], $r[5], $r[6]);
152154
}
153155
$code .= " ],\n";
154156
}

0 commit comments

Comments
 (0)