Skip to content

Commit 9d25ea2

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents f3d57d7 + 747e67f commit 9d25ea2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/iterable-functions.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ function iterable_to_traversable($iterable)
4343
} elseif (is_array($iterable)) {
4444
return new ArrayIterator($iterable);
4545
} else {
46-
throw new \InvalidArgumentException(sprintf('Expected array or \\Traversable, got %s', is_object($iterable) ? get_class($iterable) : gettype($iterable)));
46+
throw new \InvalidArgumentException(
47+
sprintf(
48+
'Expected array or \\Traversable, got %s',
49+
is_object($iterable) ? get_class($iterable) : gettype($iterable)
50+
)
51+
);
4752
}
4853
}
4954
}

0 commit comments

Comments
 (0)