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

[DowngradePhp84] Add DowngradeNewMethodCallWithoutParenthesesRector #253

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Nov 27, 2024

To downgrade new method call without parentheses for php 8.4 https://wiki.php.net/rfc/new_without_parentheses

Ref to allow feature rectorphp/rector#8701, the downgrade rule need to exists on the first place.

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@samsonasik
Copy link
Member Author

It seems allow constant, static property, static method, property, invoke, array array dim fetch as well based on https://wiki.php.net/rfc/new_without_parentheses

I think we can use this MethodCall as starting point, add more nodes later.

@TomasVotruba
Copy link
Member

👍

@samsonasik
Copy link
Member Author

@TomasVotruba let's merge 👍

@samsonasik samsonasik merged commit 8470519 into main Nov 27, 2024
6 checks passed
@samsonasik samsonasik deleted the add-downgrade-new-method-without-parentheses branch November 27, 2024 14:44
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.

2 participants