vscode-intelephense
vscode-intelephense copied to clipboard
new \MongoDB\BSON\UTCDateTime not recognized
Hello,
in Laravel 9 I am getting this error with mongodb:
$ahora = Carbon::now(); $now = new \MongoDB\BSON\UTCDateTime($ahora);
Any ideas what i can do to help idehelper to recognize this command?
Hello,
Please, use the issue template. This helps everyone to catch your problem faster and more clearly. We don't know what version of VSC you are using, what version of the add-on you are using, what your environment looks like, etc.
Anyway, does it still not work if you reload VSCode?
PS. Maybe similarly with
- https://github.com/bmewburn/vscode-intelephense/issues/1198
- https://github.com/bmewburn/vscode-intelephense/issues/2216
Add mongodb
to the intelephense.stubs
in order to have these symbols recognised.