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

ParamTypeFromStrictTypedPropertyRector and AddParamTypeFromPropertyTypeRector seems similar, one should be removed #8328

Closed
samsonasik opened this issue Nov 28, 2023 · 2 comments · Fixed by rectorphp/rector-src#5293
Labels

Comments

@samsonasik
Copy link
Member

Bug Report

Subject Details
Rector version e.g. dev-main (invoke vendor/bin/rector --version)

Minimal PHP Code Causing Issue

Both rules seems equal functionality:

ParamTypeFromStrictTypedPropertyRector: https://getrector.com/demo/d316c71d-6f95-4454-a1bc-7171a9244b2e
AddParamTypeFromPropertyTypeRector: https://getrector.com/demo/f2361cb4-1bf8-40ba-81a9-9e813bebe8e0

Expected Behaviour

One of them need to be removed to avoid maintain double similar feature.

@TomasVotruba
Copy link
Member

TomasVotruba commented Nov 28, 2023

Indeed :) good catch 👍

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