-
Notifications
You must be signed in to change notification settings - Fork 89
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
Symfony Plugin breaks bootstrapFiles configuration #299
Comments
How does it fail? |
It just throws an error that it cannot find the xml file |
For me it looks like that the XmlFactories are too early in the stack constructed before running the bootstrapFiles 🤔 |
Yeah, it's not meant to be used like that, you need to have the XML file generated already when you start PHPStan. You can create an alias in Makefile or Composer scripts so that it happens every time you run PHPStan. This could be fixed in phpstan-symfony, but you'd have to inspect the stack traces and make sure that the container isn't requested before |
Yes we have a script but thats annoying in combination with PhpStorm. So when you delete the whole var/cache and then change anything phpstan triggered by phpstorm explodes. So I would rather have this fixed in the extension :D. I can deliver the stacktrace |
I have in my
bootstrapFiles
a file which generates the containerXml file.It looks like the containerXml will be parsed before the
bootstrapFiles
are executed and so the phpstan command fails alwaysThe text was updated successfully, but these errors were encountered: