Skip to content

Commit fca9cad

Browse files
committed
Changelog + error message revert for #2287
1 parent fed5971 commit fca9cad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
4848
-- This allows you change the "exact" rule for only some parts of a file
4949
- Generic.WhiteSpace.ScopeIndent now disables exact indent checking inside all arrays
5050
-- Previously, this was only done when using long array syntax, but it now works for short array syntax as well
51+
- PEAR.Classes.ClassDeclaration now has improved handling of PHPCS annotations and tab indents
5152
- PSR12.Classes.ClassInstantiation has changed it's error code from MissingParenthesis to MissingParentheses
5253
- Squiz.Classes.LowercaseClassKeywords now examines the class keyword for anonymous classes
5354
-- Thanks to Juliette Reinders Folmer for the patch

src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function process(File $phpcsFile, $stackPtr)
7575
$phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line');
7676

7777
if ($braceLine > ($classLine + 1)) {
78-
$error = 'Opening brace of a %s must be on the line following the %s declaration; found %s blank line(s)';
78+
$error = 'Opening brace of a %s must be on the line following the %s declaration; found %s line(s)';
7979
$data = [
8080
$tokens[$stackPtr]['content'],
8181
$tokens[$stackPtr]['content'],

0 commit comments

Comments
 (0)