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
It appears the union between a shaped array and a 'normal' one tries to generalize some things where it shouldn't.
https://phpstan.org/r/4e6611d0-89ac-486d-8636-fb9a57c8cb4e
No errors
The text was updated successfully, but these errors were encountered:
I'm happy with these results. What types would you expect?
Sorry, something went wrong.
My problem is that any string key may now contain an array, instead of just the one key. Causing errors dor the function call
I guess you're asking for a feature that doesn't exist yet. You want something like this for array shapes: https://www.typescriptlang.org/docs/handbook/2/objects.html#index-signatures
another repro: https://phpstan.org/r/ee626b1b-2f3f-4e46-8c8c-6dea65949a5d - it seems the intersect is completely ignored
related with #8438 as array shape is currently not sealed nor unsealed
No branches or pull requests
Bug report
It appears the union between a shaped array and a 'normal' one tries to generalize some things where it shouldn't.
Code snippet that reproduces the problem
https://phpstan.org/r/4e6611d0-89ac-486d-8636-fb9a57c8cb4e
Expected output
No errors
The text was updated successfully, but these errors were encountered: