mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
Fix generated types
Cc @mr-feek
This commit is contained in:
parent
74a2dd42c0
commit
e5188d14fc
@ -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),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user