Skip to content

Commit e180986

Browse files
Fixes cache variable not being overwritten.
1 parent f93fb13 commit e180986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CacheQueryServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function macro(): Closure
9292
match (true) {
9393
$ttl instanceof Closure => $ttl($cache),
9494
! $ttl instanceof Cache => $cache->ttl($ttl),
95-
default => $ttl
95+
default => $cache = $ttl
9696
};
9797

9898
// Normalize the TTL argument to a Cache instance.

0 commit comments

Comments
 (0)