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
Incorrect type for result when merging array with + operator #6965
Comments
I'm already working on this: phpstan/phpstan-src#1154 |
I just noticed you comment on #6948 that you are already working on this :) |
Fixed by phpstan/phpstan-src#1154 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
PHPStan is not determining the data type of resultant array when merging array with + operator, when there are values of multiple types.
Code snippet that reproduces the problem
Expected output
Does Not Work
https://phpstan.org/r/0117678d-c523-442a-8975-7ad2d03fe92c (7+ optional keys)
Works
The text was updated successfully, but these errors were encountered: