muglug / test-phpstan-shim-no-replace
Testing PHPStan Phar distribution without replacement
0.11.6
2019-05-08 19:07 UTC
Requires
- php: ~7.1
Replaces
- nikic/php-parser: ^4.0.2
- phpstan/phpdoc-parser: ^0.3.3
- phpstan/phpstan: 0.11.6
README
The prefixed .phar
distribution is built using phpstan-compiler.
Usage
Install the package
composer require --dev phpstan/phpstan-shim
and use it like the original executable
vendor/bin/phpstan.phar analyse src
Check out the main repo for more options https://github.com/phpstan/phpstan.
For technical reasons, if your project depends on nikic/php-parser
package, make sure you have the PHAR
PHP extension enabled, otherwise the composer autoloader will not work as expected.
Configuration
It is recommended that you set a tmpDir
in your phpstan.neon
, otherwise it uses the system temp directory.
parameters:
tmpDir: var/cache/phpstan