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
array_merge lose information about input arrays non-empty-string keys and infer result as just string.
https://phpstan.org/r/2c50337c-f1d4-4e79-b230-de7cf21a666f
Result key should be non-empty-string.
The text was updated successfully, but these errors were encountered:
Is it related to #5846 ?
Sorry, something went wrong.
@Guuzen After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -14: Dumped type: array<string, string> +14: Dumped type: array<non-empty-string, string>
Dumped type: array<non-empty-string, string>
Fixed by phpstan/phpstan-src#1135
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
Bug report
array_merge lose information about input arrays non-empty-string keys and infer result as just string.
Code snippet that reproduces the problem
https://phpstan.org/r/2c50337c-f1d4-4e79-b230-de7cf21a666f
Expected output
Result key should be non-empty-string.
The text was updated successfully, but these errors were encountered: