From c24fb240add6451009c4b19ff280ff3c5b121a49 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 2 Aug 2024 13:40:53 +0200 Subject: [PATCH] Fixed static analysis --- types/Support/Facades/Cache.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/Support/Facades/Cache.php b/types/Support/Facades/Cache.php index 2fefe7448ba4..68906ef19877 100644 --- a/types/Support/Facades/Cache.php +++ b/types/Support/Facades/Cache.php @@ -5,22 +5,22 @@ use function PHPStan\Testing\assertType; assertType('mixed', Cache::get('key')); -assertType('int', Cache::get('cache', 27)); -assertType('int', Cache::get('cache', function (): int { +assertType('mixed', Cache::get('cache', 27)); +assertType('mixed', Cache::get('cache', function (): int { return 26; })); assertType('mixed', Cache::pull('key')); -assertType('int', Cache::pull('cache', 28)); -assertType('int', Cache::pull('cache', function (): int { +assertType('mixed', Cache::pull('cache', 28)); +assertType('mixed', Cache::pull('cache', function (): int { return 30; })); -assertType('int', Cache::sear('cache', function (): int { +assertType('mixed', Cache::sear('cache', function (): int { return 33; })); -assertType('int', Cache::remember('cache', now(), function (): int { +assertType('mixed', Cache::remember('cache', now(), function (): int { return 36; })); -assertType('int', Cache::rememberForever('cache', function (): int { +assertType('mixed', Cache::rememberForever('cache', function (): int { return 36; }));