1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00

Mention makeReturnByRef() in AST_builders.markdown (#519)

This commit is contained in:
Eridan Domoratskiy 2018-07-20 22:47:07 +03:00 committed by Nikita Popov
parent b855c1ca23
commit 5aeb884ab5

View File

@ -37,7 +37,7 @@ $node = $factory->namespace('Name\Space')
->addStmt($factory->method('someMethod') ->addStmt($factory->method('someMethod')
->makePublic() ->makePublic()
->makeAbstract() // ->makeFinal() ->makeAbstract() // ->makeFinal()
->setReturnType('bool') ->setReturnType('bool') // ->makeReturnByRef()
->addParam($factory->param('someParam')->setTypeHint('SomeClass')) ->addParam($factory->param('someParam')->setTypeHint('SomeClass'))
->setDocComment('/** ->setDocComment('/**
* This method does something. * This method does something.
@ -114,4 +114,4 @@ nodes. The following methods are currently available:
* `concat(...$exprs)`: Create a tree of `BinaryOp\Concat` nodes for the given expressions. * `concat(...$exprs)`: Create a tree of `BinaryOp\Concat` nodes for the given expressions.
These methods may be expanded on an as-needed basis. Please open an issue or PR if a common These methods may be expanded on an as-needed basis. Please open an issue or PR if a common
operation is missing. operation is missing.