Skip to content

Commit 2a112a1

Browse files
authored
Merge pull request #1008 from PHPCSStandards/phpcs-4.0/feature/sq-2046-squiz-validclassname-rename-error-code
Squiz/ValidClassName: changed error code to correct describe what is being checked
2 parents c5834df + 1c86836 commit 2a112a1

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)