Skip to content

Commit cd971c0

Browse files
Merge pull request #77 from VincentLanglet/warningToError
✨ Display error message instead of warning
2 parents 20cc1c2 + 009f2ad commit cd971c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SymfonyCustom/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<rule ref="PSR2">
1515
<exclude name="Generic.Files.LineLength"/>
1616
</rule>
17+
<rule ref="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed">
18+
<type>error</type>
19+
</rule>
1720

1821
<!-- Override SuperfluousWhitespace to not ignore blank lines -->
1922
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">

0 commit comments

Comments
 (0)