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
The php exec() function has return type 'string|false', like so many PHP functions.
However, when you check for this return value, Psalm (tested on v4.8) gives TypeDoesNotContainType - string does not contain false
TypeDoesNotContainType - string does not contain false
Demo here: https://psalm.dev/r/b0213d4c41
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php if (false === exec('ls')) { echo 'failed to execute'; }
Psalm output (using commit 7aa5564): ERROR: TypeDoesNotContainType - 2:5 - string does not contain false
Sorry, something went wrong.
exec() may fail
exec()
f952f1b
Fixes vimeo#6195
Successfully merging a pull request may close this issue.
The php exec() function has return type 'string|false', like so many PHP functions.
However, when you check for this return value, Psalm (tested on v4.8) gives
TypeDoesNotContainType - string does not contain false
Demo here:
https://psalm.dev/r/b0213d4c41
The text was updated successfully, but these errors were encountered: