Skip to content

Commit bb966eb

Browse files
javiereguiluzTobion
authored andcommitted
Use is_iterable() function when possible
1 parent c247993 commit bb966eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ public function appendToFile($filename, $content)
724724

725725
private function toIterable($files): iterable
726726
{
727-
return \is_array($files) || $files instanceof \Traversable ? $files : [$files];
727+
return is_iterable($files) ? $files : [$files];
728728
}
729729

730730
/**

0 commit comments

Comments
 (0)