-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Missing argument and/or missing service in several cases ... #616
Comments
not supporting factory and other fancy stuff right now. i will try to blacklist your cases until iam working on a proper solution |
Can confirm this is still an issue PHPStorm: 2020.3 |
Still present PHPStorm: 2021.2 NOTE For the # config/services.yaml
services:
# ...
App\Email\NewsletterManager:
factory: ['@App\Email\NewsletterManagerFactory', createNewsletterManager]
arguments: ['@templating'] instead of having |
When you define a service in your configuration, which is created by a factory, the plugin seem to check against arguments of the class-constructor and not the factory-method, which is used. This cause false warnings and proposals. This also happens, when extending services (parent-property).
I have this issue in a yaml-configuration file. I did not test it in other configuration formats.
Oh my gosh, just found another case, here an example of the configuration part, in which I get a "missing service":
The text was updated successfully, but these errors were encountered: