From 06218ece32bc4c29b5464d8954cb2a0e34aa8a49 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 9 Feb 2014 14:03:19 +0100 Subject: [PATCH] Return false instead of null as defined in ReadInterface --- src/Cache/AbstractCache.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Cache/AbstractCache.php b/src/Cache/AbstractCache.php index 7a2e64151..ff45fc8fa 100644 --- a/src/Cache/AbstractCache.php +++ b/src/Cache/AbstractCache.php @@ -169,26 +169,30 @@ public function has($path) * Retrieve the contents of an object * * @param string $path - * @return null|string contents or null on failure + * @return false|string contents or null on failure */ public function read($path) { if (isset($this->cache[$path]['contents'])) { return $this->cache[$path]['contents']; } + + return false; } /** * Retrieve the contents of an object * * @param string $path - * @return null|string contents or null on failure + * @return false|string contents or null on failure */ public function readStream($path) { if (isset($this->cache[$path]['stream'])) { return $this->cache[$path]['stream']; } + + return false; } /**