From 957781f9f7f0b810a309a4d3072bf7868f24d65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 3 Feb 2021 12:10:08 +0100 Subject: [PATCH] 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. --- src/Framework/Assert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/Assert.php b/src/Framework/Assert.php index 4f4c11fea59..030f1a5ac46 100644 --- a/src/Framework/Assert.php +++ b/src/Framework/Assert.php @@ -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 */