Skip to content

Commit 82a7049

Browse files
committed
Merge branch '4.4' into 5.1
2 parents 11baeef + 29a5c9b commit 82a7049

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
@@ -333,7 +333,7 @@ protected function normalizeValue($value)
333333
*/
334334
protected function remapXml(array $value)
335335
{
336-
foreach ($this->xmlRemappings as list($singular, $plural)) {
336+
foreach ($this->xmlRemappings as [$singular, $plural]) {
337337
if (!isset($value[$singular])) {
338338
continue;
339339
}

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)