-
Notifications
You must be signed in to change notification settings - Fork 94
Services with parameterised class
are not resolved
#226
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
Comments
Looks like The code in question is here
|
@ondrejmirtes I've started work on this but I struggle to prepare fix. I've added parameter and service to
But when I work with XDebug I don't see that it goes through mentioned |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I've installed
phpstan/phpstan-symfony
extension and analysed current codebase with configured container. I see many errors likeProperty Foo::$bar (Bar) does not accept %foo.bar.service.class%
on$this->bar = $this->container->get('foo.bar.service');
when service has definition with parameterised class:Such service definition is totally correct. It seems like it can't be resolved properly.
FYI: We don't have full Symfony framework, we use
symfony/dependency-injection
and dump container similarly like framework does. I don't know if that matters, but I thought I should point it out.The text was updated successfully, but these errors were encountered: