szepeviktor / phpstan-wordpress

WordPress extensions for PHPStan ⛏️
https://packagist.org/packages/szepeviktor/phpstan-wordpress
MIT License
262 stars 26 forks source link

How long should PHPStan take? #136

Closed jdamner closed 1 year ago

jdamner commented 1 year ago

A private project I work on takes around 8-10 minutes to run analysis for. It's a bespoke theme and a bunch of bespoke/private plugins so the code base is fairly large but still seems like an excessive time period considering other tools like phpcs finish in a few seconds at most. PHPUnit takes a similar amount of time, so is this just an issue of scale?

szepeviktor commented 1 year ago

Hello James! 👋🏻 Thank you for your report.

This is going on in #99

You can see which file takes longer to analyze by adding --debug -vvv

herndlm commented 1 year ago

also checkout https://gist.github.com/ruudk/41897eb59ff497b271fc9fa3c7d5fb27 maybe and feel free to open an issue over at https://github.com/phpstan/phpstan if you figured out what it is and can reproduce it with a phpstan.org snippet or a minimal reproduce in a dedicated repo

szepeviktor commented 1 year ago

@jdamner Please follow https://github.com/phpstan/phpstan/issues/8349