Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factory functions do not resolve #26

Open
khooz opened this issue Mar 19, 2020 · 1 comment
Open

factory functions do not resolve #26

khooz opened this issue Mar 19, 2020 · 1 comment

Comments

@khooz
Copy link

khooz commented Mar 19, 2020

Hi,

functions that act as factories for objects, does not resolve to the objects; e.g. in Laravel

$user = auth()->user();

the intelephense does not recognize the function user which is valid for a \Illuminate\Contracts\Auth\Factory|\Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard which is documented as function's return types, so it has a red squiggly line beneath.

Thanks!

@eric-hansen
Copy link

image

This works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants