Skip to content

[TypeDeclaration] Allow interface return change to exact return on private method on NarrowObjectReturnTypeRector#7701

Closed
samsonasik wants to merge 2 commits into
mainfrom
allow-priv
Closed

[TypeDeclaration] Allow interface return change to exact return on private method on NarrowObjectReturnTypeRector#7701
samsonasik wants to merge 2 commits into
mainfrom
allow-priv

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Ref #7700 (review)

private method is not part of contract, and usualyl not mockable or to be mockable by test, so changing interface return type on private method should be allowed.

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba ready 👍

@TomasVotruba
Copy link
Copy Markdown
Member

As stated in my PR, this rule handles only classes. Nothing else. Keep it simple :)

@samsonasik samsonasik deleted the allow-priv branch December 2, 2025 11:30
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants