Skip to content

Commit

Permalink
Add \DateTimeInterface and \DateInterval to type for `Cache::flex…
Browse files Browse the repository at this point in the history
…ible()` (#52888)
  • Loading branch information
bram-pkg authored Sep 24, 2024
1 parent b05e6f8 commit 84540bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public function rememberForever($key, Closure $callback)
* @template TCacheValue
*
* @param string $key
* @param array{ 0: int, 1: int } $ttl
* @param array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int } $ttl
* @param (callable(): TCacheValue) $callback
* @param array{ seconds?: int, owner?: string }|null $lock
* @return TCacheValue
Expand Down

0 comments on commit 84540bd

Please sign in to comment.