mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Change the type of @throws error to UndefinedDocblockClass
This commit is contained in:
parent
3ff2a64e16
commit
da230bc9f1
@ -1026,7 +1026,10 @@ abstract class FunctionLikeAnalyzer extends SourceAnalyzer implements Statements
|
||||
$expected_exception,
|
||||
$storage->location,
|
||||
$statements_analyzer->getSuppressedIssues(),
|
||||
false
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
true
|
||||
)
|
||||
) {
|
||||
$input_type = new Type\Union([new TNamedObject($expected_exception)]);
|
||||
|
@ -8,7 +8,7 @@ class ThrowsAnnotationTest extends TestCase
|
||||
{
|
||||
public function testUndefinedClassAsThrows() : void
|
||||
{
|
||||
$this->expectExceptionMessage('UndefinedClass');
|
||||
$this->expectExceptionMessage('UndefinedDocblockClass');
|
||||
$this->expectException(\Psalm\Exception\CodeException::class);
|
||||
|
||||
$this->addFile(
|
||||
|
Loading…
Reference in New Issue
Block a user