Skip to content

Commit 8a457eb

Browse files
committed
Changelog for #1892 - bakport for #1890
1 parent 7eba2c8 commit 8a457eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
100100
// Get token identifier.
101101
$name = strtoupper($token['content']);
102102
$error = 'Empty %s statement detected';
103-
$phpcsFile->addError($error, $stackPtr, 'Detected'.ucfirst(strtolower($name)), array($name));
103+
$phpcsFile->addError($error, $stackPtr, 'Detected'.ucfirst(strtolower($name)), array($name));
104104

105105
}//end process()
106106

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
3030
-- Thanks to Michał Bundyra for the patch
3131
- Fixed bug #1549 : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
3232
-- Thanks to Juliette Reinders Folmer for the patch
33+
- Fixed bug #1890 : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
3334
</notes>
3435
<contents>
3536
<dir name="/">

0 commit comments

Comments
 (0)