-
-
Notifications
You must be signed in to change notification settings - Fork 429
[TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector #3163
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
Conversation
|
All checks have passed 🎉 @TomasVotruba it is ready for review. |
|
@TomasVotruba I added |
73699b4 to
898e956
Compare
|
I rolled back add |
|
Not sure why suddently the There were 2 errors:
1) Rector\Tests\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector\NormalizeNamespaceByPSR4ComposerAutoloadRectorTest::test with data set #10 ('/home/runner/work/rector-src/...hp.inc')
Error: Object of class PhpParser\Node\Stmt\Namespace_ could not be converted to string |
|
CI finally green again 🎉 , let's add back |
…atePropertyUnionType()
|
I added back |
|
Close-ReOpen to restart build. |
|
Finally 🎉 All checks have passed 🎉 @TomasVotruba I think it is ready. |
|
Thank you 👏 |
@TomasVotruba per discussion on #3161 (comment)
This PR remove
PhpDocTypeChanger->changeVarType()without changing Property Type onTypedPropertyFromAssignsRectorThe rule is also using:
which chaning both type and docblock, but as the service is used in multiple rules in
vendor/, so I added$changeVarTypeFallbackfor it, so it is safer.so the usage can be: