mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 21:18:41 +01:00
Pass JSON Parser instance to the traverse callback
This commit is contained in:
parent
13255eda6d
commit
5308163097
@ -152,7 +152,7 @@ final class JsonParser implements IteratorAggregate
|
|||||||
$callback ??= fn () => true;
|
$callback ??= fn () => true;
|
||||||
|
|
||||||
foreach ($this as $key => $value) {
|
foreach ($this as $key => $value) {
|
||||||
$callback($value, $key);
|
$callback($value, $key, $this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user