From 154e105da523480a0e5a8f2474f6561eeb92e428 Mon Sep 17 00:00:00 2001 From: Marcel Saegebarth Date: Wed, 6 Dec 2017 17:05:41 +0100 Subject: [PATCH] Fix #315: Convert null to array for count() count(): Parameter must be an array or an object that implements Countable Signed-off-by: Marcel Saegebarth --- src/shared/FileInfoCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }