1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00

Change MissingInclude to MissingFile

This commit is contained in:
Matthew Brown 2017-10-29 17:36:02 -04:00
parent afc8cb4068
commit 35e6cf8108
4 changed files with 9 additions and 9 deletions

View File

@ -126,7 +126,7 @@
<xs:element name="MisplacedRequiredParam" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingClosureReturnType" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingConstructor" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingInclude" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingFile" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingPropertyDeclaration" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingPropertyType" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingReturnType" type="IssueHandlerType" minOccurs="0" />

View File

@ -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)
),

View File

@ -0,0 +1,6 @@
<?php
namespace Psalm\Issue;
class MissingFile extends CodeError
{
}

View File

@ -1,6 +0,0 @@
<?php
namespace Psalm\Issue;
class MissingInclude extends CodeError
{
}