[Config] Backport string|null api for node names
This commit is contained in:
parent
87bbe5ef5f
commit
fe586acd92
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user