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
https://psalm.dev/r/b55ef4e286
muglug: @bendavies mind creating an issue for that? I think it should only warn for array<string, string>
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class Foo { protected function one(): array { return [ 'one', 'two', 'three', ]; } protected function two(): array { return [ 'four', 'five', 'six', ]; } public function three(): array { return [...$this->one(), ...$this->two()]; } }
Psalm output (using commit 306ed07): ERROR: DuplicateArrayKey - 25:20 - String keys are not supported in unpacked arrays ERROR: DuplicateArrayKey - 25:37 - String keys are not supported in unpacked arrays
Sorry, something went wrong.
d8b6467
Fix array spread false negative that crashes (fixes vimeo#5431, reverts
ded670e
vimeo#2852)
Fix array spread false negative that crashes (fixes #5431, reverts #2852
b859fba
) (#5432)
No branches or pull requests
https://psalm.dev/r/b55ef4e286
The text was updated successfully, but these errors were encountered: