Skip to content

Double inject service bug with feature "Full Line Completion: Complete and inject service classes via property" #2412

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

Open
kkevindev opened this issue Feb 21, 2025 · 0 comments

Comments

@kkevindev
Copy link

kkevindev commented Feb 21, 2025

I have an issue with this feature ("Full Line Completion: Complete and inject service classes via property"):
Image

It adds the service multiple times, even when it has already been defined in the constructor.

To trigger the bug: you need to add the service to the constructor yourself first:

Image

And now this happens:

Image

And this bug has a snowball effect aswell, when you keep the double service inject in your constructor and remove the $this->logger->debug(); line and type the line again and let it autocomplete again:

Image

It adds it again:

Image
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

1 participant