Skip to content

Commit 9b8e593

Browse files
committed
Removed unused block of code
1 parent 80c47f7 commit 9b8e593

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/Phpfastcache/Core/Pool/CacheItemPoolTrait.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@ public function getItem(string $key): ExtendedCacheItemInterface
145145
$driverArray = $this->driverRead($item);
146146

147147
if ($driverArray) {
148-
if (!\is_array($driverArray)) {
149-
throw new PhpfastcacheCoreException(
150-
sprintf(
151-
'The driverRead method returned an unexpected variable type: %s',
152-
\gettype($driverArray)
153-
)
154-
);
155-
}
156148
$driverData = $this->driverUnwrapData($driverArray);
157149

158150
if ($this->getConfig()->isPreventCacheSlams()) {

0 commit comments

Comments
 (0)