Skip to content

Commit 957781f

Browse files
greg0iresebastianbergmann
authored andcommitted
Use template in param phpdoc
It looks like Psalm is able to resolve it thanks to Callback.php, but PHPStan isn't. To a human reading this phpdoc, it makes more sense to see the template in both the param and return phpdoc anyway IMO.
1 parent 4580ea2 commit 957781f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/Assert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,7 @@ public static function isTrue(): IsTrue
31173117
/**
31183118
* @psalm-template CallbackInput of mixed
31193119
*
3120-
* @psalm-param callable(mixed $callback): bool $callback
3120+
* @psalm-param callable(CallbackInput $callback): bool $callback
31213121
*
31223122
* @psalm-return Callback<CallbackInput>
31233123
*/

0 commit comments

Comments
 (0)