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/23869e7fec
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** * @psalm-suppress UnusedParam * @param non-empty-array<string, string> $arg */ function test(array $arg): void {} /** @var array{a?: string, b: string} */ $a = ['b' => 'b']; test($a); // 'b' is required, $a should be non-empty-array /** @var array{a: string, b?: string} */ $b = ['a' => 'a']; test($b); // works
Psalm output (using commit 42d3bce): ERROR: ArgumentTypeCoercion - 11:6 - Argument 1 of test expects non-empty-array<string, string>, parent type array{a?: string, b: string} provided
Sorry, something went wrong.
Fix false-positive with non-empty object like array (fixes vimeo#5436)
be96860
17f23cc
No branches or pull requests
https://psalm.dev/r/23869e7fec
The text was updated successfully, but these errors were encountered: