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
Another "Cannot unset offset on array" false positive #7417
Comments
Might be related to #4565 |
Note that the |
Also note that:
|
@alexpott After the latest push in 1.8.x, PHPStan now reports different result with your code snippet: @@ @@
-17: Cannot unset offset 'test_basetheme' on array{test_subtheme: 0, test_subsubtheme: 0}.
+No errors |
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. |
Bug report
Code snippet that reproduces the problem
Expected: No errors
Results in:
https://phpstan.org/r/33cd311d-fd19-430a-b3f5-945174682f2a
Did PHPStan help you today? Did it make you happy in any way?
PHPStan made me happy because bit by bit we're using it to improve Drupal. Thanks for all the work on it!
The text was updated successfully, but these errors were encountered: