From fe586acd92d67be07f269d0b48e0046cfe62efe8 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 27 Feb 2018 17:11:57 +0100 Subject: [PATCH] [Config] Backport string|null api for node names --- src/Symfony/Component/Config/Definition/BaseNode.php | 4 ++-- .../Component/Config/Definition/Builder/NodeBuilder.php | 4 ++-- .../Component/Config/Definition/Builder/NodeDefinition.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/Config/Definition/BaseNode.php b/src/Symfony/Component/Config/Definition/BaseNode.php index 2e346d7907..8568bf182b 100644 --- a/src/Symfony/Component/Config/Definition/BaseNode.php +++ b/src/Symfony/Component/Config/Definition/BaseNode.php @@ -33,8 +33,8 @@ abstract class BaseNode implements NodeInterface protected $attributes = array(); /** - * @param string $name The name of the node - * @param NodeInterface $parent The parent of this node + * @param string|null $name The name of the node + * @param NodeInterface|null $parent The parent of this node * * @throws \InvalidArgumentException if the name contains a period */ diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php index 152a497b14..1fac66fd37 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php @@ -143,8 +143,8 @@ class NodeBuilder implements NodeParentInterface /** * Creates a child node. * - * @param string $name The name of the node - * @param string $type The type of the node + * @param string|null $name The name of the node + * @param string $type The type of the node * * @return NodeDefinition The child node * diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php index 3c2610b5d1..8546fcd5ef 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php @@ -36,7 +36,7 @@ abstract class NodeDefinition implements NodeParentInterface protected $attributes = array(); /** - * @param string $name The name of the node + * @param string|null $name The name of the node * @param NodeParentInterface|null $parent The parent */ public function __construct($name, NodeParentInterface $parent = null)