Uh oh!
There was an error while loading. Please reload this page.
[code-quality] Add RemoveDataProviderParamKeysRector - #469
Conversation
samsonasik
commented
Mar 28, 2025
It seems buggy on yield when code quality set used in phpunit 10, it probably related with how version usage, or phpunit version check is needed on this rule: I will look into it. |
samsonasik
commented
Mar 29, 2025
@TomasVotruba actually, we already have rule that change array index name to match argument of data provider; https://getrector.com/rule-detail/named-argument-for-data-provider-rector that specifically cover phpunit 11, I think this |
TomasVotruba
commented
Mar 29, 2025
The code quality set promotes best practices and opinionated saint defaults. Often these keys are added randomly to only couple data providers. Also, the param name - string key is unnecessary complexity. The order is good enough. If someone is using these keys consistently and on purpose, this rule can be skipped. |
MacDada
commented
Nov 14, 2025
TomasVotruba
commented
Nov 14, 2025
@MacDada Hi, thanks for feedback and specific screenshot examples. It's clear to me this rule is making more mess. To be honest, I don't recall why exactly I've added this rule. It was something related to miss-matching keys to parameter names, but not sure. Saying that, I'd suggest removing this rule from the set and deprecated it. Could you make it happen via PR? |
…e useful to improve test readability rectorphp#469 (comment)
…e useful to improve test readability (#584) #469 (comment)


No description provided.