Skip to content

Commit 6a82038

Browse files
author
hayase_yasuhiro
committed
Fix PHPStan error: add $lock to closure use clause
1 parent 3964104 commit 6a82038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Cache/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public function flexible($key, $ttl, $callback, $lock = null, $alwaysDefer = fal
509509
return $value;
510510
}
511511

512-
$refresh = function () use ($valueKey, $createdKey, $lockKey, $ttl, $callback, $created) {
512+
$refresh = function () use ($valueKey, $createdKey, $lockKey, $ttl, $callback, $lock, $created) {
513513
$this->store->lock(
514514
$lockKey,
515515
$lock['seconds'] ?? 0,

0 commit comments

Comments
 (0)