beforeTraverse()
beforeTraverse(array<mixed,\PhpParser\Node> $nodes) : null|array<mixed,\PhpParser\Node>
Called once before traversal.
Return value semantics:
- null: $nodes stays as-is
- otherwise: $nodes is set to the return value
Parameters
array<mixed,\PhpParser\Node> | $nodes | Array of nodes |
Returns
null|array<mixed,\PhpParser\Node> —Array of nodes