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

Implement Rector rules to downgrade PHP code across versions #199

Closed
leoloso opened this issue Jan 3, 2021 · 0 comments
Closed

Implement Rector rules to downgrade PHP code across versions #199

leoloso opened this issue Jan 3, 2021 · 0 comments

Comments

@leoloso
Copy link
Owner

leoloso commented Jan 3, 2021

Feature Request

Rector currently has 16 rules to downgrade PHP code across versions:

Through these rules, the plugin can be coded using features from PHP 8.0, and be transpiled to run on PHP 7.1. Currently, the GraphQL API for WP uses PHP 7.4 (the list of supported features is this one), and will switch to PHP 8.0 as soon as it's released.

There are an additional 22 downgrade rules, already documented but not yet implemented.

Implement them (in the Rector repo).

Context

The new rules will unlock pretty much all features from PHP 7.1/7.2/7.3/7.4/8.0, so they can be used in the plugin (eg: match expressions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant