Skip to content

Commit 33f419c

Browse files
committed
chore: fix typo in docblock
1 parent 1bffa50 commit 33f419c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cache/src/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function decrement(Stringable|string $key, int $by = 1): int;
7979
/**
8080
* If the specified key already exists in the cache, the value is returned and the `$callback` is not executed. Otherwise, the result of the callback is stored, then returned.
8181
*
82-
* @var null|Duration $stale Allow the value to be stale for the specified amount of time in addition to the time-to-live specified by `$duration`. When a value is stale, it will still be returned, but it will be refreshed in the background.
82+
* @var null|Duration $stale Allow the value to be stale for the specified amount of time in addition to the time-to-live specified by `$expiration`. When a value is stale, it will still be returned as-is, but it will be refreshed in the background.
8383
*/
8484
public function resolve(Stringable|string $key, Closure $callback, null|Duration|DateTimeInterface $expiration = null, ?Duration $stale = null): mixed;
8585

0 commit comments

Comments
 (0)