fix merge
This commit is contained in:
parent
2ca8657547
commit
98d5cf9e73
@ -41,7 +41,7 @@ abstract class BaseNode implements NodeInterface
|
||||
*/
|
||||
public function __construct(?string $name, NodeInterface $parent = null, string $pathSeparator = self::DEFAULT_PATH_SEPARATOR)
|
||||
{
|
||||
if (false !== strpos($name = (string) , $pathSeparator)) {
|
||||
if (false !== strpos($name = (string) $name, $pathSeparator)) {
|
||||
throw new \InvalidArgumentException('The name must not contain "'.$pathSeparator.'".');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user