diff --git a/lib/PhpParser/BuilderFactory.php b/lib/PhpParser/BuilderFactory.php index ab1c5a5..2f7b47b 100644 --- a/lib/PhpParser/BuilderFactory.php +++ b/lib/PhpParser/BuilderFactory.php @@ -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 */ diff --git a/test/PhpParser/Builder/ClassTest.php b/test/PhpParser/Builder/ClassTest.php index f4c181f..731b731 100644 --- a/test/PhpParser/Builder/ClassTest.php +++ b/test/PhpParser/Builder/ClassTest.php @@ -156,6 +156,6 @@ DOC; */ public function testInvalidName() { $this->createClassBuilder('Test') - ->extend(['Foo']); + ->extend(array('Foo')); } }