Skip to content

Commit 92d470e

Browse files
[HttpFoundation] Fix type of properties in Request class
1 parent 6ac5379 commit 92d470e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Definition/Builder/TreeBuilder.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@
2020
*/
2121
class TreeBuilder implements NodeParentInterface
2222
{
23+
/**
24+
* @var NodeInterface|null
25+
*/
2326
protected $tree;
27+
28+
/**
29+
* @var NodeDefinition
30+
*/
2431
protected $root;
2532

2633
public function __construct(string $name, string $type = 'array', NodeBuilder $builder = null)
@@ -53,7 +60,7 @@ public function buildTree(): NodeInterface
5360
public function setPathSeparator(string $separator)
5461
{
5562
// unset last built as changing path separator changes all nodes
56-
unset($this->tree);
63+
$this->tree = null;
5764

5865
$this->root->setPathSeparator($separator);
5966
}

0 commit comments

Comments
 (0)