Skip to content

Commit edafaae

Browse files
committed
Fixed bug #3124 : PSR-12 not reporting error for empty lines with only whitespace
1 parent b50a9a3 commit edafaae

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
6262
-- Thanks to Juliette Reinders Folmer for the patch
6363
- Fixed bug #3099 : Squiz.WhiteSpace.OperatorSpacing false positive when exiting with negative number
6464
-- Thanks to Sergei Morozov for the patch
65+
- Fixed bug #3124 : PSR-12 not reporting error for empty lines with only whitespace
6566
</notes>
6667
<contents>
6768
<dir name="/">

src/Standards/PSR12/ruleset.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141

4242
<!-- There MUST NOT be trailing whitespace at the end of lines.
4343
Blank lines MAY be added to improve readability and to indicate related blocks of code except where explicitly forbidden. -->
44-
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
45-
<properties>
46-
<property name="ignoreBlankLines" value="true"/>
47-
</properties>
48-
</rule>
44+
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
4945
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
5046
<severity>0</severity>
5147
</rule>

0 commit comments

Comments
 (0)