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

php_unit_method_casing is renaming private methods #357

Open
jasonmccreary opened this issue Mar 6, 2025 · 0 comments
Open

php_unit_method_casing is renaming private methods #357

jasonmccreary opened this issue Mar 6, 2025 · 0 comments

Comments

@jasonmccreary
Copy link
Contributor

Pint Version

1.21.0

PHP Version

8.2.4

Description

The php_unit_method_casing is renaming private methods.

Unless this rule is going to refactor the calls to the methods it renames, it should only apply to public methods (actual test cases in PHPUnit). Any other method visibility should not have it's name changed.

Image

Steps To Reproduce

  • Create a private method using camelCase in your test cases
  • Run pint
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

No branches or pull requests

1 participant