-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
[PHPStanStaticTypeMapper] FQCN for Closure type mapper #4584
Conversation
packages/PHPStanStaticTypeMapper/TypeMapper/ClosureTypeMapper.php
Outdated
Show resolved
Hide resolved
All checks have passed 🎉 @TomasVotruba I think it is ready. |
@TomasVotruba the issue with this is, currently, rector-src/packages/NodeTypeResolver/PhpDocNodeVisitor/NameImportingPhpDocNodeVisitor.php Lines 59 to 63 in c12703d
|
It seems |
I added auto import failing test case |
short classes seems excluded by default, so it won't be applied even tweaked rector-src/packages/NodeTypeResolver/PhpDocNodeVisitor/NameImportingPhpDocNodeVisitor.php Lines 69 to 72 in 079cd51
I reverted auto import test. The FQCN-ize is happen on printing, so it should be ok. |
I added test to skip reprint for existing closure nullable skip already nullable closure var so should be fine |
All checks have passed 🎉 @TomasVotruba let's merge it to have faster feedback to test ;) |
Ref #4570 (review)