We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac5379 commit 92d470eCopy full SHA for 92d470e
Definition/Builder/TreeBuilder.php
@@ -20,7 +20,14 @@
20
*/
21
class TreeBuilder implements NodeParentInterface
22
{
23
+ /**
24
+ * @var NodeInterface|null
25
+ */
26
protected $tree;
27
+
28
29
+ * @var NodeDefinition
30
31
protected $root;
32
33
public function __construct(string $name, string $type = 'array', NodeBuilder $builder = null)
@@ -53,7 +60,7 @@ public function buildTree(): NodeInterface
53
60
public function setPathSeparator(string $separator)
54
61
55
62
// unset last built as changing path separator changes all nodes
56
- unset($this->tree);
63
+ $this->tree = null;
57
64
58
65
$this->root->setPathSeparator($separator);
59
66
}
0 commit comments