Skip to content

Commit e5f447e

Browse files
committed
Fixed #831
1 parent 5a98b2d commit e5f447e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Phpfastcache/Helper/Psr16Adapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public function getMultiple($keys, $default = null)
152152
}
153153
try {
154154
return \array_map(
155-
static function (ExtendedCacheItemInterface $item) {
156-
return $item->get();
155+
static function (ExtendedCacheItemInterface $item) use ($default) {
156+
return $item->isHit() ? $item->get() : $default;
157157
},
158158
$this->internalCacheInstance->getItems($keys)
159159
);

0 commit comments

Comments
 (0)