Skip to content

Commit 331974a

Browse files
committed
Merge branch '5.1' into 5.x
2 parents bce604a + c02555f commit 331974a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/TranslatorPathsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function process(ContainerBuilder $container)
4848
foreach ($this->findControllerArguments($container) as $controller => $argument) {
4949
$id = substr($controller, 0, strpos($controller, ':') ?: \strlen($controller));
5050
if ($container->hasDefinition($id)) {
51-
list($locatorRef) = $argument->getValues();
51+
[$locatorRef] = $argument->getValues();
5252
$this->controllers[(string) $locatorRef][$container->getDefinition($id)->getClass()] = true;
5353
}
5454
}

Loader/MoFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function loadResource($resource)
9090
$singularId = fread($stream, $length);
9191

9292
if (false !== strpos($singularId, "\000")) {
93-
list($singularId, $pluralId) = explode("\000", $singularId);
93+
[$singularId, $pluralId] = explode("\000", $singularId);
9494
}
9595

9696
fseek($stream, $offsetTranslated + $i * 8);

0 commit comments

Comments
 (0)