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

Remove ReturnArrayClassMethodToYieldRector, add to PHPUnit Rector #4213

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jun 13, 2023

This rule was originally designed to help with PHPUnit data providers.
The design had few flaws, like exact method name matching. Often the data provider can have any name, so it should be handled based on annotation/attribute value.

Fixed and moved in rectorphp/rector-phpunit#192

@TomasVotruba TomasVotruba force-pushed the tv-yield-data-provider branch from f921ecb to e20cc49 Compare June 13, 2023 16:15
@TomasVotruba TomasVotruba enabled auto-merge (squash) June 13, 2023 16:15
@TomasVotruba TomasVotruba merged commit b4eb417 into main Jun 13, 2023
@TomasVotruba TomasVotruba deleted the tv-yield-data-provider branch June 13, 2023 16:19
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.

1 participant