1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2025-01-20 04:36:57 +01:00

Fix 5.3 build and some small cleanups

This commit is contained in:
Nikita Popov 2014-12-19 18:54:56 +01:00
parent 7ab88416ac
commit 4cd2b95a23
2 changed files with 3 additions and 3 deletions

View File

@ -12,14 +12,14 @@ use PhpParser\Builder;
* @method Builder\Class_ class(string $name) Creates a class builder.
* @method Builder\Interface_ interface(string $name) Creates an interface builder.
* @method Builder\Trait_ trait(string $name) Creates a trait builder.
* @method Builder\Function_ function(string $name) Creates a function builder
* @method Builder\Function_ function(string $name) Creates a function builder.
*/
class BuilderFactory
{
/**
* Creates a namespace builder.
*
* @param string $name Fully qualified namespace
* @param string|Node\Name $name Name of the namespace
*
* @return Builder\Namespace_ The created namespace builder
*/

View File

@ -156,6 +156,6 @@ DOC;
*/
public function testInvalidName() {
$this->createClassBuilder('Test')
->extend(['Foo']);
->extend(array('Foo'));
}
}