Replies: 4 comments · 1 reply
-
|
Please show the whole error message that is reported. Also creating a small repository that reproduces the problem might be helpful, but maybe too hard to do. |
Beta Was this translation helpful? Give feedback.
-
|
appoloies |
Beta Was this translation helpful? Give feedback.
-
My config is in that namespace: |
Beta Was this translation helpful? Give feedback.
-
|
https://symfony.com/doc/current/service_container.html using the raw string passes phpstan but the app doesn't run, vice versa the app runs but phpstan is unhappy |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am on symfony 7.4.2, and I am using the new/recommended
App::configapproach for configuration. I have this config, and phpstan has some buggy behavior around it:Sometimes phpstan reports it as clean, other times it report
service() method not found. Theservice()method is indeed in the namespace. I can't figure out how or why the intermittent false possitive happens. I have just ignored the file for now in phpstan.neon but I don't like that.Any ideas, or suggestions for how I should debug further?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions