Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21f7977

Browse files
authored
Improve PHPdoc / IDE autocomplete for config tree builder
1 parent 81955df commit 21f7977

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public function root($name, $type = 'array', NodeBuilder $builder = null)
5151
return $this->root = $builder->node($name, $type)->setParent($this);
5252
}
5353

54+
/**
55+
* @return NodeDefinition|ArrayNodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array')
56+
*/
5457
public function getRootNode(): NodeDefinition
5558
{
5659
if (null === $this->root) {

0 commit comments

Comments
 (0)