Improve PHPdoc / IDE autocomplete for config tree builder

This commit is contained in:
Konstantin Myakshin 2019-04-01 17:03:25 +03:00 committed by GitHub
parent 81955dfac9
commit 21f797714e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,9 @@ class TreeBuilder implements NodeParentInterface
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
{
if (null === $this->root) {