Skip to content

Commit a18e23b

Browse files
committed
Squiz/FunctionDeclarationArgumentSpacing: fix typo in SpacingAfterVis[i]bility error code
Follow up on #792, related to #1135 The `SpacingAfterVis[i]bility` error code was introduced in v 3.12.0 (March this year) for constructor property promotion. The `SpacingAfterSetVis[i]bility` error code was introduced in v 3.13.1 (this month) for constructor property promotion with asym visibility. Both contained the same typo. PR 1135 fixes the asym error code and will be included in PHPCS 3.13.2. This commit now fixes the non-asym error code and will be included in PHPCS 4.0.0.
1 parent d5d7d2f commit a18e23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function processBracket($phpcsFile, $openBracket)
320320
$spacesAfter,
321321
];
322322

323-
$fix = $phpcsFile->addFixableError($error, $visibilityToken, 'SpacingAfterVisbility', $data);
323+
$fix = $phpcsFile->addFixableError($error, $visibilityToken, 'SpacingAfterVisibility', $data);
324324
if ($fix === true) {
325325
$phpcsFile->fixer->beginChangeset();
326326
$phpcsFile->fixer->addContent($visibilityToken, ' ');

0 commit comments

Comments
 (0)