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

Empty Collections class in _ide_helper.php causes bad intellisense #1585

Open
amcsi opened this issue Sep 11, 2024 · 0 comments
Open

Empty Collections class in _ide_helper.php causes bad intellisense #1585

amcsi opened this issue Sep 11, 2024 · 0 comments
Labels

Comments

@amcsi
Copy link

amcsi commented Sep 11, 2024

Versions:

  • ide-helper Version: 3.1.0
  • PHP Version: 8.3.11

Question:

IDE-Helper generates classes like Illuminate\Database\Eloquent\Collection that is like the built-in Eloquent Collection, except it has none of the methods including the constructor, so it makes type-hinting bad: it thinks there is no constructor thus marks what I pass to the constructor as gray (not needed), also it things the ->merge() method does not exist.
I'm sure I must be doing wrong. Please help.

The generated bits in _ide_helper.php
image
image

The bad intellisense.
image

config/ide-helper.php

@amcsi amcsi added the question label Sep 11, 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

1 participant