Skip to content

Commit db3cd17

Browse files
authored
Merge pull request #801 from Geolim4/master
Added callback comment for callback argument
2 parents 86210a1 + e083ab5 commit db3cd17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Phpfastcache/Helper/CacheConditionalHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function get(string $cacheKey, callable $callback, $expiresAfter = null)
5050
$cacheItem = $this->cacheInstance->getItem($cacheKey);
5151

5252
if (!$cacheItem->isHit()) {
53+
/** Parameter $cacheItem will be available as of 8.0.6 */
5354
$cacheItem->set($callback($cacheItem));
5455
if ($expiresAfter) {
5556
$cacheItem->expiresAfter($expiresAfter);

0 commit comments

Comments
 (0)