Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 887cba2

Browse files
minor #26297 [Config] Backport string|null api for node names (ro0NL)
This PR was merged into the 2.7 branch. Discussion ---------- [Config] Backport string|null api for node names | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Commits ------- fe586ac [Config] Backport string|null api for node names
2 parents 0222fde + fe586ac commit 887cba2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Symfony/Component/Config/Definition/BaseNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ abstract class BaseNode implements NodeInterface
3333
protected $attributes = array();
3434

3535
/**
36-
* @param string $name The name of the node
37-
* @param NodeInterface $parent The parent of this node
36+
* @param string|null $name The name of the node
37+
* @param NodeInterface|null $parent The parent of this node
3838
*
3939
* @throws \InvalidArgumentException if the name contains a period
4040
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ public function end()
143143
/**
144144
* Creates a child node.
145145
*
146-
* @param string $name The name of the node
147-
* @param string $type The type of the node
146+
* @param string|null $name The name of the node
147+
* @param string $type The type of the node
148148
*
149149
* @return NodeDefinition The child node
150150
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract class NodeDefinition implements NodeParentInterface
3636
protected $attributes = array();
3737

3838
/**
39-
* @param string $name The name of the node
39+
* @param string|null $name The name of the node
4040
* @param NodeParentInterface|null $parent The parent
4141
*/
4242
public function __construct($name, NodeParentInterface $parent = null)

0 commit comments

Comments
 (0)