diff --git a/config.xsd b/config.xsd index ea191f907..9069e7d9b 100644 --- a/config.xsd +++ b/config.xsd @@ -126,7 +126,7 @@ - + diff --git a/src/Psalm/Checker/StatementsChecker.php b/src/Psalm/Checker/StatementsChecker.php index b854d03b7..d83a162e1 100644 --- a/src/Psalm/Checker/StatementsChecker.php +++ b/src/Psalm/Checker/StatementsChecker.php @@ -17,7 +17,7 @@ use Psalm\Context; use Psalm\Exception\FileIncludeException; use Psalm\Issue\ContinueOutsideLoop; use Psalm\Issue\InvalidGlobal; -use Psalm\Issue\MissingInclude; +use Psalm\Issue\MissingFile; use Psalm\Issue\UnevaluatedCode; use Psalm\Issue\UnrecognizedStatement; use Psalm\Issue\UnresolvableInclude; @@ -1025,7 +1025,7 @@ class StatementsChecker extends SourceChecker implements StatementsSource } if (IssueBuffer::accepts( - new MissingInclude( + new MissingFile( 'Cannot find file ' . $path_to_file . ' to include', new CodeLocation($this->source, $stmt) ), diff --git a/src/Psalm/Issue/MissingFile.php b/src/Psalm/Issue/MissingFile.php new file mode 100644 index 000000000..b13e7a520 --- /dev/null +++ b/src/Psalm/Issue/MissingFile.php @@ -0,0 +1,6 @@ +