Skip to content

Commit ceff5f5

Browse files
authored
Merge pull request #2300 from WordPress/feature/validvariablename-bring-back-catID
NamingConventions/ValidVariableName: bring back `$catID`
2 parents 495d61a + 0fc6aa0 commit ceff5f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WordPress/Sniffs/NamingConventions/ValidVariableNameSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ final class ValidVariableNameSniff extends PHPCS_AbstractVariableSniff {
6666
* @var array
6767
*/
6868
protected $allowed_mixed_case_member_var_names = array(
69+
'cat_ID' => true,
6970
'comment_ID' => true,
7071
'comment_author_IP' => true,
7172
'comment_post_ID' => true,

WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ public function getErrorList() {
7171
103 => 1,
7272
104 => 1,
7373
105 => 1,
74-
120 => 1,
75-
121 => 2,
74+
121 => 1,
7675
126 => 1,
7776
138 => 1,
7877
145 => 1,

0 commit comments

Comments
 (0)