Skip to content

feat: AddParamTypeBasedOnParentClassMethodRector - #5

Merged
acoulton merged 2 commits into
mainfrom
feat-add-param-types-from-parent
Apr 10, 2026
Merged

feat: AddParamTypeBasedOnParentClassMethodRector#5
acoulton merged 2 commits into
mainfrom
feat-add-param-types-from-parent

Conversation

@acoulton

Copy link
Copy Markdown
Member

Add a risky rule to populate strict types for method parameters based on the types defined in parent classes / interfaces.

Rector does not do this by default, because it can cause breaking changes if a class was intentionally accepting a wider set of types than its parent.

Add a risky rule to populate strict types for method parameters based on
the types defined in parent classes / interfaces.

Rector does not do this by default, because it can cause breaking
changes if a class was intentionally accepting a wider set of types than
its parent.
To allow for some additional constants that were released in the 2.3
series
@acoulton
acoulton merged commit 3cf72bb into main Apr 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant