We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had the same problem with phpstan and psalm, so here is the Playground link:
https://phan.github.io/demo/?code=%3C%3Fphp%0A%0Afunction+foo%28int+%24i%2C+int+...%24is%29%3A+void%0A%7B%0A++++%24i+%2B%3D+array_sum%28%24is%29%3B%0A++++echo+%24i%3B%0A%7D%0A%0A%2F**%0A+*+%40param+int%5B%5D+%24fields%0A+*%2F%0Afunction+bar%28array+%24fields%29%3A+void%0A%7B%0A%09foo%28...%24fields%29%3B%0A%7D%0A%0Abar%28%5B%5D%29%3B
Phan does not detect an error, but as you can see here, passing an empty array results in an error.
The text was updated successfully, but these errors were encountered:
Improve analysis of array shape unpacking
b6c76aa
Improve the detection of too many or too few arguments where the real type is actually known. Related to phan#4577
191d94f
Improve check if there are too few args when unpacking
151cd55
For phan#4577
No branches or pull requests
I had the same problem with phpstan and psalm, so here is the Playground link:
https://phan.github.io/demo/?code=%3C%3Fphp%0A%0Afunction+foo%28int+%24i%2C+int+...%24is%29%3A+void%0A%7B%0A++++%24i+%2B%3D+array_sum%28%24is%29%3B%0A++++echo+%24i%3B%0A%7D%0A%0A%2F**%0A+*+%40param+int%5B%5D+%24fields%0A+*%2F%0Afunction+bar%28array+%24fields%29%3A+void%0A%7B%0A%09foo%28...%24fields%29%3B%0A%7D%0A%0Abar%28%5B%5D%29%3B
Phan does not detect an error, but as you can see here, passing an empty array results in an error.
The text was updated successfully, but these errors were encountered: