From 44713a48ac4910a26c04bad988ce8df62803c356 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 20 Mar 2020 14:41:25 -0400 Subject: [PATCH] Add default shortcode --- src/Psalm/Issue/CodeIssue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Issue/CodeIssue.php b/src/Psalm/Issue/CodeIssue.php index c4abe543b..5f6f3c26b 100644 --- a/src/Psalm/Issue/CodeIssue.php +++ b/src/Psalm/Issue/CodeIssue.php @@ -10,6 +10,7 @@ use function array_pop; abstract class CodeIssue { const ERROR_LEVEL = -1; + const SHORTCODE = 0; /** * @var CodeLocation @@ -104,7 +105,6 @@ abstract class CodeIssue $fqcn_parts = explode('\\', get_called_class()); $issue_type = array_pop($fqcn_parts); - /** @psalm-suppress UndefinedConstant */ return new \Psalm\Internal\Analyzer\IssueData( $severity, $location->getLineNumber(),