[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();
|
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
|
||||||
*/
|
*/
|
||||||
|
@ -143,7 +143,7 @@ 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
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user