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

[Php70] Do not replace if method call if method exists in current class on call same method with parent on Php4ConstructorRector #6520

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Nov 28, 2024

@afilina continue of PR:

this PR ensure method exists check in current class before replace $this->call() with \Parent::__construct()

…e method with parent on Php4ConstructorRector
@samsonasik samsonasik changed the title [Php70] Do not replace if method exists in current method on call same method with parent on Php4ConstructorRector [Php70] Do not replace if method exists in current class on call same method with parent on Php4ConstructorRector Nov 28, 2024
@samsonasik
Copy link
Member Author

Fixed 🎉

@samsonasik samsonasik changed the title [Php70] Do not replace if method exists in current class on call same method with parent on Php4ConstructorRector [Php70] Do not replace if method call if method exists in current class on call same method with parent on Php4ConstructorRector Nov 28, 2024
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 101bdbf into main Nov 28, 2024
36 checks passed
@samsonasik samsonasik deleted the do-not-remove branch November 28, 2024 10:17
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