Skip to content

Commit

Permalink
Improve PHPdoc / IDE autocomplete for config tree builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Koc committed Apr 1, 2019
1 parent 81955df commit 21f7977
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function root($name, $type = 'array', NodeBuilder $builder = null)
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) {
Expand Down

0 comments on commit 21f7977

Please sign in to comment.