-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
phpstan/phpstan-src
#4173Labels
Milestone
Description
Bug report
PhpDoc describing Closure signatures seems to break the type of variadic closure parameters.
Code snippet that reproduces the problem
https://phpstan.org/r/131d81a7-ffa4-4ee5-bf1e-1028b0bd478b
checkExplicitMixed: true is required to reproduce this bug.
If I remove the mixed... parameter from the PhpDoc, it shuts up.
Expected output
No errors.
Actual output
------ -------------------------------------------------------------
Line Test.php
------ -------------------------------------------------------------
15 Only iterables can be unpacked, mixed given in argument #1.
------ -------------------------------------------------------------
[ERROR] Found 1 error
Reactions are currently unavailable