-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
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
[DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector #5588
Conversation
Fixed 🎉 /cc @kamil-tekiela |
// normalize bool union types | ||
$phpParserNodeType = $this->normalizeConstantBooleanType($phpParserNodeType); | ||
$phpStanDocType = $this->normalizeConstantBooleanType($phpStanDocType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this apparently, make the valid removal skipped for super type:
/** @var string|bool|null */
private static string|false|null $inputArgSeparator = null;
which docblok is super type, I will look more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added failing test case for valid removal super type 0c89834
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with equal and sub type check 3690cad
All checks have passed 🎉 @TomasVotruba I am merging it ;) |
Fixes rectorphp/rector#8475