Skip to content

Commit 751d4b0

Browse files
authored
Merge pull request #788 from PHPCSStandards/feature/docs-various-fixes
Docs: various minor fixes
2 parents e8e123e + 76d4892 commit 751d4b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function process(File $phpcsFile, $stackPtr)
121121
$constName = $tokens[$constPtr]['content'];
122122
$prefix = '';
123123

124-
// Strip namespace from constant like /foo/bar/CONSTANT.
124+
// Strip namespace from constant like \foo\bar\CONSTANT.
125125
$splitPos = strrpos($constName, '\\');
126126
if ($splitPos !== false) {
127127
$prefix = substr($constName, 0, ($splitPos + 1));

Diff for: tests/Core/Ruleset/RuleInclusionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public function testSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFail
450450
*
451451
* @see self::testSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFails()
452452
*
453-
* @return array<string, array>string, string>>
453+
* @return array<string, array<string, string>>
454454
*/
455455
public static function dataSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFails()
456456
{

Diff for: tests/Core/Ruleset/ShowSniffDeprecationsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenAllDeprecatedSniffsAreExc
256256

257257

258258
/**
259-
* Test deprecated sniffs are listed alphabetically in the deprecated sniffs warning.
259+
* Test various aspects of the deprecated sniffs warning.
260260
*
261261
* This tests a number of different aspects:
262262
* 1. That the summary line uses the correct grammar when there is are multiple deprecated sniffs.
@@ -321,7 +321,7 @@ public function testDeprecatedSniffsWarning()
321321

322322

323323
/**
324-
* Test deprecated sniffs are listed alphabetically in the deprecated sniffs warning.
324+
* Test the report width is respected when displaying the deprecated sniffs warning.
325325
*
326326
* This tests the following aspects:
327327
* 1. That the summary line uses the correct grammar when there is a single deprecated sniff.

0 commit comments

Comments
 (0)