Skip to content

Commit 293e1d8

Browse files
authored
Update LaravelCache.php
1 parent 03fc92d commit 293e1d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/LaravelCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LaravelCache
2121
* @param boolean $forever
2222
* @return mixed
2323
*/
24-
public static function remember(string $cacheKey, callable|Carbon $cacheTime = null, callable $callable = null, $forever = false)
24+
public static function remember(string $cacheKey, callable|Carbon|null $cacheTime = null, callable $callable = null, $forever = false)
2525
{
2626
// 使用默认缓存时间
2727
if (is_callable($cacheTime)) {
@@ -54,7 +54,7 @@ public static function remember(string $cacheKey, callable|Carbon $cacheTime = n
5454
* @param callable|null $callable
5555
* @return mixed
5656
*/
57-
public static function rememberForever(string $cacheKey, callable|Carbon $cacheTime = null, callable $callable = null)
57+
public static function rememberForever(string $cacheKey, callable|Carbon|null $cacheTime = null, callable $callable = null)
5858
{
5959
return LaravelCache::remember($cacheKey, $cacheTime, $callable, true);
6060
}

0 commit comments

Comments
 (0)