8000 minor #28912 [Config] Use intersection type when referring to ParentN… · symfony/symfony@316f96e · GitHub
[go: up one dir, main page]

Skip to content

Commit 316f96e

Browse files
committed
minor #28912 [Config] Use intersection type when referring to ParentNodeDefinitionInterface (thewilkybarkid)
This PR was merged into the 2.8 branch. Discussion ---------- [Config] Use intersection type when referring to ParentNodeDefinitionInterface | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Allows PHPStan to understand it correctly (refs libero/content-api-bundle#2 (comment)). PHPStorm 2018.3 will add support for it too, but to help older versions I've reversed the order (so `NodeDefinition` is recognised). Commits ------- e9cdabe Use intersection type when referring to ParentNodeDefinitionInterface
2 parents 7be8ca5 + e9cdabe commit 316f96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function variableNode($name)
133133
/**
134134
* Returns the parent node.
135135
*
136-
* @return ParentNodeDefinitionInterface|NodeDefinition The parent node
136+
* @return NodeDefinition&ParentNodeDefinitionInterface The parent node
137137
*/
138138
public function end()
139139
{

0 commit comments

Comments
 (0)
0