Skip to content

Commit e90f717

Browse files
committed
Merge branch '5.1' into 5.x
2 parents 5948e9f + 82a7049 commit e90f717

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Definition/ArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ protected function normalizeValue($value)
339339
*/
340340
protected function remapXml(array $value)
341341
{
342-
foreach ($this->xmlRemappings as list($singular, $plural)) {
342+
foreach ($this->xmlRemappings as [$singular, $plural]) {
343343
if (!isset($value[$singular])) {
344344
continue;
345345
}

Definition/Dumper/XmlReferenceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private function writeNode(NodeInterface $node, int $depth = 0, bool $root = fal
5353
});
5454

5555
if (\count($remapping)) {
56-
list($singular) = current($remapping);
56+
[$singular] = current($remapping);
5757
$rootName = $singular;
5858
}
5959
}

0 commit comments

Comments
 (0)