Skip to content

Commit

Permalink
Use is_iterable() instead of \Traversable.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 28, 2019
1 parent 37ad7bd commit 711611b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operation/All.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function on(iterable $collection)
$result = [];

foreach ($collection as $key => $item) {
if ($item instanceof \Traversable) {
if (true === \is_iterable($item)) {
$subresult = [];

foreach ($item as $k => $v) {
Expand Down

0 comments on commit 711611b

Please sign in to comment.