From 2bfff835f1d567016174ddddb4253856a9af6f0d Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 9 Feb 2014 14:11:49 +0100 Subject: [PATCH] Rely on ReadInterface contract for getSize(). The return type in the cache impl was fixed recently, therefore we can rely on the contract --- src/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filesystem.php b/src/Filesystem.php index 24863c66f..9f997d114 100644 --- a/src/Filesystem.php +++ b/src/Filesystem.php @@ -526,7 +526,7 @@ public function getSize($path) $path = Util::normalizePath($path); $cached = $this->cache->getSize($path); - if (is_int($cached)) { + if ($cached !== false) { return $cached; }