Level 39
May 16, 2021
3
Level 3
intelephense undefined method and undefined type
with intelephense there is an issue with undefined type and undefined method. my file runs and has no bugs or no errors but after I installed intelephense when I open it with vscode and with the intelephense extention it gave me 49 problems
for example for
$user = Auth::user();
I do have use Auth; in my file.
the error intelephense gives me is
Undefined type 'Auth'.intelephense(1009)
View Problem (Alt+F8)
No quick fixes available
what should I do? it's annoying to see red lines all over the file
Please or to participate in this conversation.