Skip to content

Commit

Permalink
Only output single line of source code
Browse files Browse the repository at this point in the history
  • Loading branch information
cspray committed Jul 8, 2022
1 parent e42e27a commit 16d2059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event
IssueBuffer::accepts(
new ClassNotFinal(
sprintf('%s has not been marked as final nor is marked for inheritance.', $class),
new CodeLocation($event->getStatementsSource(), $event->getStmt())
new CodeLocation($event->getStatementsSource(), $event->getStmt(), single_line: true)
)
);

Expand Down

0 comments on commit 16d2059

Please sign in to comment.