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
When casting a SimpleXMLElement to bool, it can be true or false (cf: https://3v4l.org/aOHT6)
SimpleXMLElement
But, when using a ternary operator on a SimpleXMLElement phpstan reports a violation Ternary operator condition is always true.: https://phpstan.org/r/7e2a4df7-90db-4dd3-85a4-a7f207fcafe8
Ternary operator condition is always true.
The text was updated successfully, but these errors were encountered:
Fixed: phpstan/phpstan-src@83c1e0b
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
When casting a
SimpleXMLElement
to bool, it can be true or false (cf: https://3v4l.org/aOHT6)But, when using a ternary operator on a
SimpleXMLElement
phpstan reports a violationTernary operator condition is always true.
: https://phpstan.org/r/7e2a4df7-90db-4dd3-85a4-a7f207fcafe8The text was updated successfully, but these errors were encountered: