Skip to content
Permalink
Browse files

Change the type of @throws error to UndefinedDocblockClass

  • Loading branch information...
muglug committed Aug 13, 2019
1 parent 3ff2a64 commit da230bc9f1b02a1683756acfa2ae8020035b2dc4
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php
  2. +1 −1 tests/ThrowsAnnotationTest.php
@@ -1026,7 +1026,10 @@ function (FunctionLikeParameter $p) {
$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(

0 comments on commit da230bc

Please sign in to comment.
You can’t perform that action at this time.