From 64b7ffbdf5e4650533ec32bc5d9762ee0f95ea94 Mon Sep 17 00:00:00 2001 From: Richardas Kuchinskas Date: Sun, 10 Mar 2024 17:28:57 +0300 Subject: [PATCH] simplify error report text --- src/linter/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linter/worker.go b/src/linter/worker.go index 382f3c01..8e7beb7c 100644 --- a/src/linter/worker.go +++ b/src/linter/worker.go @@ -316,7 +316,7 @@ func (w *Worker) analyzeFile(file *workspace.File, rootNode *ir.Root) (*rootWalk walker.afterLeaveFile() if !walker.declareSection { - walker.Report(rootNode, LevelWarning, "noDeclareSection", "You have no declare section with strict_types=1 argument") + walker.Report(rootNode, LevelWarning, "noDeclareSection", "Missed declare(strict_types=1) directive") walker.addQuickFix("notStrictTypes", walker.quickfix.CreateDeclareStrictTypes(rootNode)) }