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:
parent
afc8cb4068
commit
35e6cf8108
@ -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" />
|
||||
|
@ -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)
|
||||
),
|
||||
|
6
src/Psalm/Issue/MissingFile.php
Normal file
6
src/Psalm/Issue/MissingFile.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Psalm\Issue;
|
||||
|
||||
class MissingFile extends CodeError
|
||||
{
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
namespace Psalm\Issue;
|
||||
|
||||
class MissingInclude extends CodeError
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user