mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-26 20:04:48 +01:00
Fix wrong method call in doc
This commit is contained in:
parent
3d0f7843d4
commit
8e4f972036
@ -307,7 +307,7 @@ $nodeFinder = new NodeFinder;
|
||||
$classes = $nodeFinder->findInstanceOf($stmts, Node\Stmt\Class_::class);
|
||||
|
||||
// Find all classes that extend another class
|
||||
$extendingClasses = $nodeFinder->findInstanceOf($stmts, function(Node $node) {
|
||||
$extendingClasses = $nodeFinder->find($stmts, function(Node $node) {
|
||||
return $node instanceof Node\Stmt\Class_
|
||||
&& $node->extends !== null;
|
||||
});
|
||||
@ -334,4 +334,4 @@ reverse direction: When working on a node, you might want to check if the parent
|
||||
certain property.
|
||||
|
||||
PHP-Parser does not add parent (or sibling) references to nodes by itself, but you can easily
|
||||
emulate this with a visitor. See the [FAQ](FAQ.markdown) for more information.
|
||||
emulate this with a visitor. See the [FAQ](FAQ.markdown) for more information.
|
||||
|
Loading…
Reference in New Issue
Block a user