diff --git a/src/shared/FileInfoCollection.php b/src/shared/FileInfoCollection.php index 33a0f057..5e230072 100644 --- a/src/shared/FileInfoCollection.php +++ b/src/shared/FileInfoCollection.php @@ -64,7 +64,7 @@ public function rewind() { * @return int */ public function count() { - return count($this->data); + return count((array) $this->data); } }