Remove $separator arg from Name::toString()

This commit is contained in:
Nikita Popov 2016-10-09 12:45:15 +02:00
parent caa5c0cc76
commit a910f6a247
2 changed files with 4 additions and 6 deletions

View File

@ -83,14 +83,13 @@ class Name extends NodeAbstract
}
/**
* Returns a string representation of the name by imploding the namespace parts with a separator.
*
* @param string $separator The separator to use (defaults to the namespace separator \)
* Returns a string representation of the name by imploding the namespace parts with the
* namespace separator.
*
* @return string String representation
*/
public function toString($separator = '\\') {
return implode($separator, $this->parts);
public function toString() {
return implode('\\', $this->parts);
}
/**

View File

@ -27,7 +27,6 @@ class NameTest extends \PHPUnit_Framework_TestCase
$this->assertSame('foo\bar', (string) $name);
$this->assertSame('foo\bar', $name->toString());
$this->assertSame('foo_bar', $name->toString('_'));
}
public function testAppend() {