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
false
Related to phpstan/phpstan#5376 (reply in thread) Seems like unlike is saying the php documentation, shell_exec can return false php/php-src#7306
But psalm consider the return type to be string|null https://psalm.dev/r/36a3eb5fa8
string|null
Where should I update the return type definition ?
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php function foo(string $s): bool { /** @psalm-suppress ForbiddenCode */ return false !== shell_exec($s); }
Psalm output (using commit 82dfbbc): ERROR: RedundantCondition - 5:12 - null|string can never contain false
Sorry, something went wrong.
Just dictionaries/CallMap.php (no changes to deltas are required).
dictionaries/CallMap.php
Thanks, #6178
Successfully merging a pull request may close this issue.
Related to phpstan/phpstan#5376 (reply in thread)
Seems like unlike is saying the php documentation, shell_exec can return
false
php/php-src#7306But psalm consider the return type to be
string|null
https://psalm.dev/r/36a3eb5fa8
Where should I update the return type definition ?
The text was updated successfully, but these errors were encountered: