fix: return class instance of type

This commit is contained in:
Feek 2020-04-13 21:28:59 -07:00
parent ea1d89b452
commit 2ad0043f12

View File

@ -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),
]);
}
}