Skip to content

Commit cbcb68d

Browse files
committed
- Updated error message for namespace underscore sniff
1 parent cbef364 commit cbcb68d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom-standards/Flyeralarm/Sniffs/File/NamespacesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function process(File $phpcsFile, $stackPtr)
2727
while($ptr = $phpcsFile->findNext(T_NS_SEPARATOR, $ptr + 1)) {
2828
if (strpos($tokens[$ptr + 1]['content'], '_') !== false) {
2929
$phpcsFile->addError(
30-
'Namespace declarations after vendor name must be in UpperCamelCase',
30+
'Using underscores within namespaces is discouraged',
3131
$stackPtr,
3232
'NamespaceDeclarationWithInvalidCapitalization'
3333
);

tests/rules/classes/not-allowed/UnderscoreNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
// @expectedError Namespace declarations after vendor name must be in UpperCamelCase
3+
// @expectedError Using underscores within namespaces is discouraged
44

55
namespace flyeralarm\under_score;
66

0 commit comments

Comments
 (0)