Skip to content

Commit d8d70f7

Browse files
committed
Make sure a ValueNode always has a value.
1 parent 4488f3c commit d8d70f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/ValueNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ValueNode extends NaryNode implements ValueNodeInterface
2323
* @param int $capacity
2424
* @param null|\drupol\phptree\Node\NodeInterface $parent
2525
*/
26-
public function __construct($value = null, int $capacity = 0, NodeInterface $parent = null)
26+
public function __construct($value, int $capacity = 0, NodeInterface $parent = null)
2727
{
2828
parent::__construct($capacity, $parent);
2929

0 commit comments

Comments
 (0)