-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
[TypeDeclaration] Add false and true in union support on ReturnUnionTypeRector #5355
Conversation
By this, I found a bug on https://github.com/rectorphp/rector-src/actions/runs/7172210877/job/19528876575?pr=5355#step:5:90
On use case: final class LocalConstants
{
const FIRST = 'hey';
const SECOND = 'hou';
public function getValue($number)
{
return $number ? self::FIRST : self::SECOND;
}
} the issue seems on
|
It seems resolved with remove |
I added failing fixture for both |
@samsonasik What needs to be done here to finish/close this one? I'd like to resolve it before next release |
it currently only phpstan complexity https://github.com/rectorphp/rector-src/actions/runs/7172780220/job/19530707952?pr=5355#step:5:19 , but I may missing something on hash uniquite types I can rebase and extract method/ignore in phpstan.neon after psr4 work, it seems still error on scoped build https://github.com/rectorphp/rector-src/actions/runs/7378601824/job/20073924556#step:11:38 |
24e0f5a
to
b3854df
Compare
All checks have passed 🎉 @TomasVotruba I think it is ready. |
@TomasVotruba let's merge it to have faster feedback to test ;) |
This PR make:
false|string
is allowed, combinetrue
andstring
becomebool|string
false|string
andtrue|string
is allowedref