mirror of
https://github.com/danog/PHP-Parser.git
synced 2025-01-20 12:46:47 +01:00
Fix 5.3 build and some small cleanups
This commit is contained in:
parent
7ab88416ac
commit
4cd2b95a23
@ -12,14 +12,14 @@ use PhpParser\Builder;
|
|||||||
* @method Builder\Class_ class(string $name) Creates a class builder.
|
* @method Builder\Class_ class(string $name) Creates a class builder.
|
||||||
* @method Builder\Interface_ interface(string $name) Creates an interface builder.
|
* @method Builder\Interface_ interface(string $name) Creates an interface builder.
|
||||||
* @method Builder\Trait_ trait(string $name) Creates a trait 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
|
class BuilderFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Creates a namespace builder.
|
* 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
|
* @return Builder\Namespace_ The created namespace builder
|
||||||
*/
|
*/
|
||||||
|
@ -156,6 +156,6 @@ DOC;
|
|||||||
*/
|
*/
|
||||||
public function testInvalidName() {
|
public function testInvalidName() {
|
||||||
$this->createClassBuilder('Test')
|
$this->createClassBuilder('Test')
|
||||||
->extend(['Foo']);
|
->extend(array('Foo'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user