fix merge

This commit is contained in:
Nicolas Grekas 2018-03-19 23:45:52 +01:00
parent 2ca8657547
commit 98d5cf9e73
1 changed files with 1 additions and 1 deletions

View File

@ -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.'".');
}