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

[DowngradePhp80] Fixture for DowngradeMatchToSwitchRector match having true subject expression #2176

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

jrstanley
Copy link
Contributor

I was checking to make sure that the DowngradeMatchToSwitchRector supported cases where the subject expression is true match(true) { ... } and the match arms contained the expression to evaluate.

The tests are already passing for this (great!), however I thought it would be worthwhile adding the test in any event to ensure this continues to work in the future?

@samsonasik samsonasik merged commit 7fb8254 into rectorphp:main Apr 26, 2022
@samsonasik
Copy link
Member

Thank you @jrstanley

@jrstanley jrstanley deleted the match-true-subject-expression branch April 26, 2022 22:46
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