Fixes typo in AST Builder doc (#529)

This commit is contained in:
Brent Shaffer 2018-08-16 15:18:50 -07:00 committed by Nikita Popov
parent 7f96481c80
commit 1973b6633a

View File

@ -28,7 +28,7 @@ use PhpParser\Node;
$factory = new BuilderFactory;
$node = $factory->namespace('Name\Space')
->addStmt($factory->use('Some\Other\Thingy')->as('SomeOtherClass'))
->addStmt($factory->use('Some\Other\Thingy')->as('SomeClass'))
->addStmt($factory->useFunction('strlen'))
->addStmt($factory->useConst('PHP_VERSION'))
->addStmt($factory->class('SomeOtherClass')