Skip to content

Commit

Permalink
Fixed static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 2, 2024
1 parent 8fd4e65 commit c24fb24
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/Support/Facades/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}));

0 comments on commit c24fb24

Please sign in to comment.