Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bdfeb57

Browse filesBrowse files
committed
minor #30817 [Config] Improve PHPdoc / IDE autocomplete for config tree 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
2 parents 81955df + 21f7977 commit bdfeb57
Copy full SHA for bdfeb57

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.