Skip to content

Commit 8e90fda

Browse files
thib92nicolas-grekas
authored andcommitted
Fix left-associative ternary deprecation warnings for PHP 7.4
1 parent 36ac088 commit 8e90fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private function compileStaticRoutes(array $staticRoutes, array &$conditions): s
210210
foreach ($staticRoutes as $url => $routes) {
211211
$code .= self::export($url)." => [\n";
212212
foreach ($routes as $name => list($route, $hasTrailingSlash)) {
213-
$code .= $this->compileRoute($route, $name, !$route->compile()->getHostVariables() ? $route->getHost() : $route->compile()->getHostRegex() ?: null, $hasTrailingSlash, false, $conditions);
213+
$code .= $this->compileRoute($route, $name, (!$route->compile()->getHostVariables() ? $route->getHost() : $route->compile()->getHostRegex()) ?: null, $hasTrailingSlash, false, $conditions);
214214
}
215215
$code .= "],\n";
216216
}

0 commit comments

Comments
 (0)