Closed mitelg closed 4 years ago
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review.
Hi, how is it possible that this file is missing from your Composer installation? I can work around it but I thought it's a given this file will always be there.
We have a development template which is the project root. it also contains the platform repo mentioned above. Here is the main vendor directory located, which also contains the installed.json
file. (here happend the composer install
)
My plugin is located in a directory here. I execute PHPStan in the plugin directory. Before executing I do a composer dump-autoload
otherwise PHPStan could not load the classes of the plugin correctly. I also have to configure the --autoload-file
option, which shows to the mentioned above main vendor directory, to load the Shopware Core classes correctly, that are also used in the plugin.
I hope this makes it a bit clearer. If not, I'm willing to explain it more detailed :blush:
Thank you for the explanation. I just fixed it: https://github.com/phpstan/phpstan-src/commit/e4fe64c8444cd19c863327ba292055cacb54acd1
Please try out phpstan/phpstan
dev-master in half an hour or so when the change propagates.
works again very well! :+1: thank you!
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.
Bug report
Expected output
Is the installed.json really needed? It wasn't before, so maybe there is a way to do the analysis without executing
composer install
in the plugin directory :blush: