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
<?php class X { /** * @param string $c */ public function find($c) : void { $result = []; if ($c) { $result['c'] = $c; } '@phan-debug-var $result'; // PhanRedundantCondition Redundant attempt to cast $result['c'] of type non-empty-mixed to isset if (isset($result['c'])) { echo "Found\n"; } } }
(Annotated)UnionType->getRealUnionType() should preserve whether the union type is possibly undefined.
The text was updated successfully, but these errors were encountered:
Fix false positive redundant condition for possibly undefined
5b59ab7
Fixes phan#3650
TysonAndre
Successfully merging a pull request may close this issue.
(Annotated)UnionType->getRealUnionType() should preserve whether the union type is possibly undefined.
The text was updated successfully, but these errors were encountered: