Skip to content

Commit f07a240

Browse files
committed
Not all driver clearing returns a boolean
1 parent 3c8367c commit f07a240

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/phpFastCache/Core/StandardPsr6StructureTrait.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,9 @@ public function hasItem($key)
125125
*/
126126
public function clear()
127127
{
128-
if ($this->driverClear()) {
129-
CacheManager::$WriteHits++;
130-
$this->itemInstances = [];
131-
132-
return true;
133-
}
134-
135-
return false;
128+
CacheManager::$WriteHits++;
129+
$this->itemInstances = [];
130+
return $this->driverClear();
136131
}
137132

138133
/**

0 commit comments

Comments
 (0)