Skip to content

Commit

Permalink
minor #30817 [Config] Improve PHPdoc / IDE autocomplete for config tr…
Browse files Browse the repository at this point in the history
…ee builder (Koc)

This PR was merged into the 4.2 branch.

Discussion
----------

[Config] Improve PHPdoc / IDE autocomplete for config tree builder

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

follow up of #27476 and #21047

Commits
-------

21f7977 Improve PHPdoc / IDE autocomplete for config tree builder
  • Loading branch information
fabpot committed Apr 1, 2019
2 parents 81955df + 21f7977 commit bdfeb57
Showing 1 changed file with 3 additions and 0 deletions.
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 bdfeb57

Please sign in to comment.