New issue
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
sscanf array bug #7764
Comments
I guess this will be fixed with phpstan/phpstan-src#1576 |
Thanks @staabm and sorry that I somehow did not spot #7563 when searching for sscanf in the issues... |
No worries. I will add a regression test for this issue as soon as I am back at that PR |
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. |
PHPStan seems to assume that
sscanf()
returns an array of size 1.Since PHPStan 1.7.15 (no problem with 1.7.14). Could be due to phpstan/phpstan-src#1434
Code snippet that reproduces the problem
https://phpstan.org/r/99167899-8984-4874-b79d-8834ff508aa9
Running that code in PHP returns:
The text was updated successfully, but these errors were encountered: