From 16d2059ad9441ae926d6c6bf132013aa0ac2b4ea Mon Sep 17 00:00:00 2001 From: Charles Sprayberry Date: Fri, 8 Jul 2022 15:14:32 -0400 Subject: [PATCH] Only output single line of source code --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 4304b26..11de580 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -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) ) );