[Config] Backport string|null api for node names

This commit is contained in:
Roland Franssen 2018-02-27 17:11:57 +01:00
parent 87bbe5ef5f
commit fe586acd92
3 changed files with 5 additions and 5 deletions

View File

@ -33,8 +33,8 @@ abstract class BaseNode implements NodeInterface
protected $attributes = array(); protected $attributes = array();
/** /**
* @param string $name The name of the node * @param string|null $name The name of the node
* @param NodeInterface $parent The parent of this node * @param NodeInterface|null $parent The parent of this node
* *
* @throws \InvalidArgumentException if the name contains a period * @throws \InvalidArgumentException if the name contains a period
*/ */

View File

@ -143,8 +143,8 @@ class NodeBuilder implements NodeParentInterface
/** /**
* Creates a child node. * Creates a child node.
* *
* @param string $name The name of the node * @param string|null $name The name of the node
* @param string $type The type of the node * @param string $type The type of the node
* *
* @return NodeDefinition The child node * @return NodeDefinition The child node
* *

View File

@ -36,7 +36,7 @@ abstract class NodeDefinition implements NodeParentInterface
protected $attributes = array(); 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 * @param NodeParentInterface|null $parent The parent
*/ */
public function __construct($name, NodeParentInterface $parent = null) public function __construct($name, NodeParentInterface $parent = null)