mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
Remove $separator arg from Name::toString()
This commit is contained in:
parent
caa5c0cc76
commit
a910f6a247
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user