Skip to content

Commit

Permalink
Use template in param phpdoc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greg0ire authored and sebastianbergmann committed Feb 3, 2021
1 parent 4580ea2 commit 957781f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -3117,7 +3117,7 @@ public static function isTrue(): IsTrue
/**
* @psalm-template CallbackInput of mixed
*
* @psalm-param callable(mixed $callback): bool $callback
* @psalm-param callable(CallbackInput $callback): bool $callback
*
* @psalm-return Callback<CallbackInput>
*/
Expand Down

0 comments on commit 957781f

Please sign in to comment.