mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2025-01-22 21:31:21 +01:00
Merge pull request #42 from mr-feek/fix-app-helper-typehint
fix: return class instance of type
This commit is contained in:
commit
081d62d2ae
@ -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…
x
Reference in New Issue
Block a user