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

new \MongoDB\BSON\UTCDateTime not recognized #1365

Closed
nicolasvahidzein opened this issue Aug 17, 2022 · 6 comments
Closed

new \MongoDB\BSON\UTCDateTime not recognized #1365

nicolasvahidzein opened this issue Aug 17, 2022 · 6 comments
Labels

Comments

@nicolasvahidzein
Copy link

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?

@mfn
Copy link
Collaborator

mfn commented Aug 17, 2022

getting this error

What's the error? Can you share a stacktrace?

@nicolasvahidzein
Copy link
Author

No stacktrace just an errror:

Undefined type 'MongoDB\BSON\UTCDateTime'.intelephense(1009)

@mfn
Copy link
Collaborator

mfn commented Aug 18, 2022

Maybe I'm missing something, but I don't see the relation to this project…?

@nicolasvahidzein
Copy link
Author

My apologies if i made a mistake but i was under the impression that ide helper helps intelephense understanding the different facades and methods used in a project.

@mfn
Copy link
Collaborator

mfn commented Aug 18, 2022

  • Related to Eloquent it does, but this MongoDB and there's no support for that
  • intelephense is only "accidentally" supported (my own wording). It uses phpdoc, maybe features championed by phpstan once phpstorm catches up, which is usually the fastest of all IDEs to support nice features
    (and some things generated by ide-helper are outright phpstorm specific, like the meta file for DI resolving)

@mfn
Copy link
Collaborator

mfn commented Feb 16, 2024

No feedback, also don't see any actionable for ide-helper -> closing

@mfn mfn closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants