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
https://phpstan.org/r/25383d75-a004-43d6-83cf-df864f99c806
<?php declare(strict_types = 1); /** @param non-empty-list<mixed> $foo */ function sayHello($foo): void { } /** @return list<int> */ function getList(): array { return []; } $a = getList(); $a[] = 1; sayHello($a);
I'm not sure if it's possible in the current PHPStan... Just wondering. It'd be great to detect this.
The text was updated successfully, but these errors were encountered:
The beginning was easy but then I had to fix all the subsequent bugs... Fixed: phpstan/phpstan-src@d67dae3
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
https://phpstan.org/r/25383d75-a004-43d6-83cf-df864f99c806
I'm not sure if it's possible in the current PHPStan... Just wondering. It'd be great to detect this.
The text was updated successfully, but these errors were encountered: