Skip to content

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.

3 participants