Fix generated types

Cc @mr-feek
This commit is contained in:
Matthew Brown 2020-04-12 15:52:21 -04:00 committed by GitHub
parent 74a2dd42c0
commit e5188d14fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ namespace Psalm\LaravelPlugin\ReturnTypeProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Routing\Redirector;
use PhpParser;
use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\Plugin\Hook\FunctionReturnTypeProviderInterface;
@ -35,7 +36,7 @@ class RedirectReturnTypeProvider implements FunctionReturnTypeProviderInterface
}
return new Type\Union([
RedirectResponse::class,
new Type\Atomic\TNamedObject(RedirectResponse::class),
]);
}
}