-
Notifications
You must be signed in to change notification settings - Fork 46
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
NamedArgumentForDataProviderRector only changing the first data provider #345
Comments
Great 👍 Could you send the PR with fix? :) |
Sorry, too much on my plate these days. |
No worries 👍 Closing as duplicate of similar issue to keep focus: #346 (comment) |
Without this fix, the rule is only partially doing its job, and the "optional feature" triggers deprecations that are outputted by PHUnit. So please, don't close this issue, it's a separate problem from the other you've linked. |
I missunderstood then. We'll need a failing demo link first. Ref: #330 /cc @marcelthole |
I added a failing testcase and fixed that case. We didn't had the case with multiple dataproviders on a single test method. But it should be fixed now :) |
Hey there,
I've ran NamedArgumentForDataProviderRector on my project and noticed it only refactors the first
#[DataProvider]
it encounters. On my project, it missed about a 1/3 of the deprecations.Changing
getDataProviderMethodName
to return an array of method names :and calling it like this :
fixes the issue. /cc @marcelthole
gnutix
The text was updated successfully, but these errors were encountered: