Skip to content

Commit 5bd38b5

Browse files
committed
wrap the callable in parentheses
1 parent f0573f3 commit 5bd38b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

system/Cache/CacheInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function save(string $key, mixed $value, int $ttl = 60): bool;
4444
* Attempts to get an item from the cache, or executes the callback
4545
* and stores the result on cache miss.
4646
*
47-
* @param string $key Cache item name
48-
* @param callable(mixed): int|int $ttl Time To Live, in seconds
49-
* @param Closure(): mixed $callback Callback executed on cache miss
47+
* @param string $key Cache item name
48+
* @param (callable(mixed): int)|int $ttl Time To Live, in seconds
49+
* @param Closure(): mixed $callback Callback executed on cache miss
5050
*/
5151
public function remember(string $key, callable|int $ttl, Closure $callback): mixed;
5252

0 commit comments

Comments
 (0)