Skip to content

Commit eb4670a

Browse files
committed
Merge branch '5.2' into 5.3
2 parents 6d98186 + 2c3593d commit eb4670a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Definition/ArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function getDefaultValue()
184184
public function addChild(NodeInterface $node)
185185
{
186186
$name = $node->getName();
187-
if (!\strlen($name)) {
187+
if ('' === $name) {
188188
throw new \InvalidArgumentException('Child nodes must be named.');
189189
}
190190
if (isset($this->children[$name])) {

0 commit comments

Comments
 (0)