Skip to content

Commit 3f1e308

Browse files
committed
use the empty string instead of null as an array offset
1 parent 80e2cf0 commit 3f1e308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Definition/Builder/ArrayNodeDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function normalizeKeys(bool $bool): static
331331

332332
public function append(NodeDefinition $node): static
333333
{
334-
$this->children[$node->name] = $node->setParent($this);
334+
$this->children[$node->name ?? ''] = $node->setParent($this);
335335

336336
return $this;
337337
}

0 commit comments

Comments
 (0)