-
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
Add rule to check @dataProvider #150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thats something I had on my list for a few months :-).
the rule as is already provides a lot of value, so take my comment as an idea for further improvements - maybe in future PRs so we don't overcomplicate this very first iteration.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost perfect! :) Just a few points to change.
Please use the newer regex. And about deprecations - let's revisit this after this PR is merged and released 👍 |
Thank you, it's perfect! About the next steps: I'm thinking the deprecation should be reported by phpstan-phpunit when also phpstan-deprecation-rules are installed. These steps need to be taken:
Can you execute this plan? :) Thank you. |
Sure :) |
Looks like PHPUnit 10 is going to also support attributes for dataProviders, can you please updste the rule so that it reads them too? Thanks! |
Here a new rule to check the
@dataProvider
annotation:checkFunctionNameCase
parameter)is the method static