File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -172,13 +172,14 @@ public function getDescendantNodesAndTokens(callable $shouldDescendIntoChildrenF
172
172
173
173
/**
174
174
* Iterate over all descendant Nodes and Tokens, calling $callback.
175
- * This can often be faster than getDescendantNodesAndTokens if you just need to call something and don't be a generator.
175
+ * This can often be faster than getDescendantNodesAndTokens
176
+ * if you just need to call something and don't need a generator.
176
177
*
177
178
* @param callable $callback a callback that accepts Node|Token
178
179
* @param callable|null $shouldDescendIntoChildrenFn
179
180
* @return void
180
181
*/
181
- public function walkDescendantNodesAndTokens (\ Closure $ callback , callable $ shouldDescendIntoChildrenFn = null ) {
182
+ public function walkDescendantNodesAndTokens (callable $ callback , callable $ shouldDescendIntoChildrenFn = null ) {
182
183
// TODO - write unit tests to prove invariants
183
184
// (concatenating all descendant Tokens should produce document, concatenating all Nodes should produce document)
184
185
foreach (static ::CHILD_NAMES as $ name ) {
You can’t perform that action at this time.
0 commit comments