Skip to content

Commit

Permalink
simplify error report text
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidanio committed Jul 25, 2024
1 parent cb86578 commit 64b7ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linter/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 64b7ffb

Please sign in to comment.