Skip to content

Commit d859f4a

Browse files
committed
Fix CS
1 parent 764ff9e commit d859f4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ private function generateServiceFiles(array $services): iterable
10941094
$definitions = $this->container->getDefinitions();
10951095
ksort($definitions);
10961096
foreach ($definitions as $id => $definition) {
1097-
if ((list($file, $code) = $services[$id]) && null !== $file && ($definition->isPublic() || !$this->isTrivialInstance($definition) || isset($this->locatedIds[$id]))) {
1097+
if (([$file, $code] = $services[$id]) && null !== $file && ($definition->isPublic() || !$this->isTrivialInstance($definition) || isset($this->locatedIds[$id]))) {
10981098
yield $file => [$code, $definition->hasTag($this->hotPathTag) || !$definition->hasTag($this->preloadTags[1]) && !$definition->isDeprecated() && !$definition->hasErrors()];
10991099
}
11001100
}

Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private function processAnonymousServices(\DOMDocument $xml, string $file)
430430

431431
// resolve definitions
432432
uksort($definitions, 'strnatcmp');
433-
foreach (array_reverse($definitions) as $id => list($domElement, $file)) {
433+
foreach (array_reverse($definitions) as $id => [$domElement, $file]) {
434434
if (null !== $definition = $this->parseDefinition($domElement, $file, new Definition())) {
435435
$this->setDefinition($id, $definition);
436436
}

0 commit comments

Comments
 (0)