Skip to content

Commit baecb98

Browse files
committed
Use custom rule instead of custom sniff
PHP_CodeSniffer v3.2.3 has fixed a bug that allows removal of the ValidVariableName custom sniff in favor of the custom rule. Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
1 parent 00f7fc6 commit baecb98

File tree

3 files changed

+6
-49
lines changed

3 files changed

+6
-49
lines changed

PMAStandard/Sniffs/NamingConventions/ValidVariableNameSniff.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

PMAStandard/ruleset.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@
3535
<property name="ignoreNewlines" value="true" />
3636
</properties>
3737
</rule>
38+
39+
<!-- Variable names should be camelCased with the first letter lowercase. -->
40+
<rule ref="Zend.NamingConventions.ValidVariableName">
41+
<exclude name="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
42+
</rule>
3843
</ruleset>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"issues": "https://github.com/phpmyadmin/coding-standard/issues"
1717
},
1818
"require": {
19-
"squizlabs/php_codesniffer": "^3.0"
19+
"squizlabs/php_codesniffer": "^3.2.3"
2020
}
2121
}

0 commit comments

Comments
 (0)