Skip to content

[TypeDeclaration] Skip __destruct() from add return type based on parent on AddReturnTypeDeclarationBasedOnParentClassMethodRector #6883

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

samsonasik
Copy link
Member

While wait for PHPStan patch to be merged:

this patch to ensure __destruct() is not add void, list of magic method add return type and not allowed return type is here https://3v4l.org/7t7jA

Fixes rectorphp/rector#9144

samsonasik added 2 commits May 5, 2025 19:09
…ent on AddReturnTypeDeclarationBasedOnParentClassMethodRector
@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @jderusse

@samsonasik
Copy link
Member Author

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

@samsonasik samsonasik merged commit c6df7f5 into main May 5, 2025
45 checks passed
@samsonasik samsonasik deleted the skip-destruct branch May 5, 2025 12:13
@jderusse
Copy link

jderusse commented May 5, 2025

thank you!

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.

Incorrect behavior of AddReturnTypeDeclarationBasedOnParentClassMethodRector
2 participants