Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Inference of array unpacking results in false negative #2833
Unpacking inside arrays is possible since PHP 7.4. PHPStan doesn't seem to infer unpacked types properly.
Code snippet that reproduces the problem
The snippet should complain about
@Majkl578 your code was buggy, with the correct calls the code errors appropriately: https://phpstan.org/r/8ce206dd-266c-45b0-bcc8-42d812b4b0cd