Skip to content

Commit 1c86836

Browse files
gsherwoodjrfnl
authored andcommitted
Squiz/ValidClassName: changed error code to correct describe what is being checked
Fixes squizlabs/PHP_CodeSniffer 2046
1 parent b63cedf commit 1c86836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function process(File $phpcsFile, $stackPtr)
7474
$type,
7575
$name,
7676
];
77-
$phpcsFile->addError($error, $nameStart, 'NotCamelCaps', $data);
77+
$phpcsFile->addError($error, $nameStart, 'NotPascalCase', $data);
7878
$phpcsFile->recordMetric($stackPtr, 'PascalCase class name', 'no');
7979
} else {
8080
$phpcsFile->recordMetric($stackPtr, 'PascalCase class name', 'yes');

0 commit comments

Comments
 (0)