From 84540bde79dabe69b06e13fb722b02a273334d7e Mon Sep 17 00:00:00 2001 From: Bram Date: Tue, 24 Sep 2024 14:42:33 +0100 Subject: [PATCH] Add `\DateTimeInterface` and `\DateInterval` to type for `Cache::flexible()` (#52888) --- src/Illuminate/Cache/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Cache/Repository.php b/src/Illuminate/Cache/Repository.php index 19ece90313ff..8835f49629ee 100755 --- a/src/Illuminate/Cache/Repository.php +++ b/src/Illuminate/Cache/Repository.php @@ -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