-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
Generic return type is used as native [ReturnTypeDeclarationRector] #7213
Comments
Could you create failing test case PR for it? You can click "Create a Test" button at the demo page |
It's done, tell me if I did something wrong or if there is something more I can do. |
You can click "Create pull request" button for it, better to rename fixture class with something like |
Bug Report
The generic return type from phpdoc is used for the native return type,
\T
which does not exist.Minimal PHP Code Causing Issue
Demo: https://getrector.org/demo/5a20665a-b61f-4923-8b9a-aa9cb5c3a8ea
Responsible rules
ReturnTypeDeclarationRector
Failing test
rectorphp/rector-src@main...FrancoisPog:patch-1
rectorphp/rector-src#2454
N.B.
This similar example works correctly : https://getrector.org/demo/1faeadb8-431b-43d4-83e6-b74c1cd408bd;
Expected Behaviour
The return type should not be changed IMHO 🤔
Thanks
By the way, thanks for this awesome tool, what a fantastic job ! 💯
The text was updated successfully, but these errors were encountered: