Skip to content

Commit 83c0f81

Browse files
committed
fix: phpstan is smarter
1 parent a1319d7 commit 83c0f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/Cache/Repository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
}));
1515

1616
assertType('mixed', $cache->pull('key'));
17-
assertType('mixed', $cache->pull('cache', 28));
18-
assertType('mixed', $cache->pull('cache', function (): int {
17+
assertType('28', $cache->pull('cache', 28));
18+
assertType('30', $cache->pull('cache', function (): int {
1919
return 30;
2020
}));
2121
assertType('33', $cache->sear('cache', function (): int {

0 commit comments

Comments
 (0)