diff --git a/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php b/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php index 259fa2963d..41b5b61240 100644 --- a/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php +++ b/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php @@ -121,7 +121,7 @@ public function process(File $phpcsFile, $stackPtr) $constName = $tokens[$constPtr]['content']; $prefix = ''; - // Strip namespace from constant like /foo/bar/CONSTANT. + // Strip namespace from constant like \foo\bar\CONSTANT. $splitPos = strrpos($constName, '\\'); if ($splitPos !== false) { $prefix = substr($constName, 0, ($splitPos + 1)); diff --git a/tests/Core/Ruleset/RuleInclusionTest.php b/tests/Core/Ruleset/RuleInclusionTest.php index e016a7ea1a..f6d7b5478d 100644 --- a/tests/Core/Ruleset/RuleInclusionTest.php +++ b/tests/Core/Ruleset/RuleInclusionTest.php @@ -450,7 +450,7 @@ public function testSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFail * * @see self::testSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFails() * - * @return arraystring, string>> + * @return array> */ public static function dataSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFails() { diff --git a/tests/Core/Ruleset/ShowSniffDeprecationsTest.php b/tests/Core/Ruleset/ShowSniffDeprecationsTest.php index 6979d69a7b..e31537de50 100644 --- a/tests/Core/Ruleset/ShowSniffDeprecationsTest.php +++ b/tests/Core/Ruleset/ShowSniffDeprecationsTest.php @@ -256,7 +256,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenAllDeprecatedSniffsAreExc /** - * Test deprecated sniffs are listed alphabetically in the deprecated sniffs warning. + * Test various aspects of the deprecated sniffs warning. * * This tests a number of different aspects: * 1. That the summary line uses the correct grammar when there is are multiple deprecated sniffs. @@ -321,7 +321,7 @@ public function testDeprecatedSniffsWarning() /** - * Test deprecated sniffs are listed alphabetically in the deprecated sniffs warning. + * Test the report width is respected when displaying the deprecated sniffs warning. * * This tests the following aspects: * 1. That the summary line uses the correct grammar when there is a single deprecated sniff.