Improve PHPdoc / IDE autocomplete for config tree builder
This commit is contained in:
parent
81955dfac9
commit
21f797714e
@ -51,6 +51,9 @@ class TreeBuilder implements NodeParentInterface
|
|||||||
return $this->root = $builder->node($name, $type)->setParent($this);
|
return $this->root = $builder->node($name, $type)->setParent($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return NodeDefinition|ArrayNodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array')
|
||||||
|
*/
|
||||||
public function getRootNode(): NodeDefinition
|
public function getRootNode(): NodeDefinition
|
||||||
{
|
{
|
||||||
if (null === $this->root) {
|
if (null === $this->root) {
|
||||||
|
Reference in New Issue
Block a user