Skip to content

Commit 4b699ba

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/UnnecessaryFinalModifier: improve code coverage
This commit add one more test case file to exercise defensive code that makes the sniff bail early if the class has no body.
1 parent 4287c8c commit 4b699ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
// Intentional parse error (class without body). Testing that the sniff is *not* triggered
4+
// in this case.
5+
final class Missing_Body

0 commit comments

Comments
 (0)