mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-27 04:45:26 +01:00
fix: return class instance of type
This commit is contained in:
parent
ea1d89b452
commit
2ad0043f12
@ -32,6 +32,8 @@ final class AppReturnTypeProvider implements FunctionReturnTypeProviderInterface
|
||||
}
|
||||
|
||||
// @todo: this should really proxy to \Illuminate\Foundation\Application::make, but i was struggling with that
|
||||
return $statements_source->getNodeTypeProvider()->getType($call_args[0]->value);
|
||||
return new Union([
|
||||
new TNamedObject($call_args[0]->value),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user