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

New Universal.UseStatements.LowercaseFunctionConst sniff #58

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 16, 2020

New sniff to verify that function and const keywords when used in an import use statement are always lowercase.

Companion sniff to the upstream Generic.PHP.LowerCaseKeyword sniff which doesn't cover these keywords as they are not tokenized as T_FUNCTION/T_CONST, but as T_STRING.

Includes fixer.
Includes unit tests.
Includes documentation.
Includes metrics.

Related:

New sniff to verify that `function` and `const` keywords when used in an import `use` statement are always lowercase.

Companion sniff to the upstream `Generic.PHP.LowerCaseKeyword` sniff which doesn't cover these keywords as they are not tokenized as `T_FUNCTION`/`T_CONST`, but as `T_STRING`.

Includes fixer.
Includes unit tests.
Includes documentation.
Includes metrics.

Related:
* squizlabs/PHP_CodeSniffer 2963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant