phpstan compiler
1.0.0
PHPStan uses native PHP reflection to read class metadata of the project it inspects, which means it is loading the code it inspects into it's runtime.
If you'd wanted to inspect for example symfony/console, you'll have to
Even after that, you're still inspecting the code, that is inspecting your code. Doesn't sound right, does it?
This project does the following
phpstan/phpstan-doctrine has references for Doctrine namespace in it - we don't wanna prefix them, but only everything else.The repository phpstan/phpstan-shim contains compiled phars. It would be awesome if you'd help us test them, but keep in mind this is not production ready.
git clone https://github.com/fprochazka/phpstan-compiler
cd phpstan-compiler
composer install
php -dphar.readonly=0 bin/compile [--no-extensions] [version]Generated phar will be in tmp/
This project was inspired by
Thank you!