Skip to content

Commit 84540bd

Browse files
authored
Add \DateTimeInterface and \DateInterval to type for Cache::flexible() (#52888)
1 parent b05e6f8 commit 84540bd

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
@@ -479,7 +479,7 @@ public function rememberForever($key, Closure $callback)
479479
* @template TCacheValue
480480
*
481481
* @param string $key
482-
* @param array{ 0: int, 1: int } $ttl
482+
* @param array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int } $ttl
483483
* @param (callable(): TCacheValue) $callback
484484
* @param array{ seconds?: int, owner?: string }|null $lock
485485
* @return TCacheValue

0 commit comments

Comments
 (0)