Skip to content

Commit f6ac951

Browse files
committed
Fixed #831
1 parent eba2c23 commit f6ac951

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Phpfastcache/Helper/Psr16Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function getMultiple($keys, $default = null)
146146
}
147147
try {
148148
return \array_map(
149-
static fn (ExtendedCacheItemInterface $item) => $item->get(),
149+
static fn (ExtendedCacheItemInterface $item) => $item->isHit() ? $item->get() : $default,
150150
$this->internalCacheInstance->getItems($keys)
151151
);
152152
} catch (PhpfastcacheInvalidArgumentException $e) {

0 commit comments

Comments
 (0)