Skip to content
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

Add class-string typehint to MethodCallRename #2726

Merged
merged 3 commits into from Aug 3, 2022

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Aug 2, 2022

Avoid problem like: rectorphp/rector-symfony#209 via phpstan static code analyzer.

@TomasVotruba
Copy link
Member

Thanks 👍

Could ypu update other value objects that take class string as input?

@alexander-schranz
Copy link
Contributor Author

@TomasVotruba done!

@TomasVotruba
Copy link
Member

Thank you @alexander-schranz 👏

@TomasVotruba TomasVotruba merged commit f99f19c into rectorphp:main Aug 3, 2022
@alexander-schranz alexander-schranz deleted the patch-1 branch August 3, 2022 12:37
@TomasVotruba
Copy link
Member

TomasVotruba commented Aug 6, 2022

I just realized why we avoided this one :D
https://github.com/rectorphp/rector-symfony/runs/7705700412?check_suite_focus=true

The PHPStan now reports hundreds false positives everywhere.
The class does not have to exist during writing the configuration. We have to revert this one.

@alexander-schranz
Copy link
Contributor Author

Okay make sense 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants