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

Is there any sniff available for valid variable name when preset is Laravel #654

Open
pankaj-ag opened this issue Aug 6, 2023 · 0 comments

Comments

@pankaj-ag
Copy link

Q A
Bug report? no
Feature request? yes/no
Library version x.y.z

I've integrated this library into my existing Laravel project, and it's been performing exceptionally well. However, I've encountered a challenge related to adhering to camel case variable naming conventions. I attempted to address this concern by utilizing available sniffs like

  • PHP_CodeSniffer\Standards\Zend\Sniffs\NamingConventions\ValidVariableNameSniff
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions\ValidVariableNameSniff

Unfortunately, both of these sniffs also flag variable usages such as $user->first_name. I'm keen to learn if there exists an alternative sniff or a method to incorporate this insight into my project while maintaining accuracy in variable naming conventions.

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