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
psalm 3.12.3 gives: Argument 1 of strval cannot be null, possibly null value provided psalm 3.12.2 gives: no error
https://psalm.dev/r/eb1c5f9e86
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php $headers = fgetcsv(fopen('test.txt', 'r')); if (empty($headers)) { throw new Exception('invalid headers'); } print_r(array_map('strval', $headers));
Psalm output (using commit 5635070): ERROR: PossiblyNullArgument - 6:29 - Argument 1 of strval cannot be null, possibly null value provided
Sorry, something went wrong.
ad1920c
technically fgetcsv can return [null] which passes the empty check, but in reality that's incredibly rare.
fgetcsv
[null]
No branches or pull requests
psalm 3.12.3 gives: Argument 1 of strval cannot be null, possibly null value provided
psalm 3.12.2 gives: no error
https://psalm.dev/r/eb1c5f9e86
The text was updated successfully, but these errors were encountered: