-
Notifications
You must be signed in to change notification settings - Fork 53
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
Service subscriber does not support custom service names #172
Comments
@annuh thank you for the report. According to related tests defined here https://github.com/psalm/psalm-plugin-symfony/blob/master/tests/acceptance/acceptance/ServiceSubscriber.feature the feature is working as expected. Could you please provide a test case that fails with your scenario? |
It turns this issue is caused by using Here is a test case to reproduce our scenario:
This results now in this error:
Is Psalm even capable of understanding |
Possibly related issue(s): #101
It seems the Psalm Symfony plugin doesn't support service subscribers using a custom service name.
Here is the related documentation: https://symfony.com/doc/current/service_container/service_subscribers_locators.html#including-services
For example the following PHP code
results in the following error:
Is this a missing feature or am I doing something wrong? 🙂
The text was updated successfully, but these errors were encountered: