README: add note

This commit is contained in:
Tomas Votruba 2018-05-28 11:33:20 +02:00
parent 654fea839c
commit 9976f988f1

View File

@ -44,12 +44,11 @@ composer require --dev rector/rector
### Do you Have Conflicts? ### Do you Have Conflicts?
Since Rector **uses project's autoload to analyze type of elements**, it cannot be installed as project in standalone directory but needs to be added as dependency. Here [`bamarni/composer-bin-plugin`](https://github.com/bamarni/composer-bin-plugin) becomes useful. Since Rector **uses project's autoload to analyze type of elements**, it cannot be installed as project in standalone directory but needs to be added as dependency. In case you have composer versions conflicts, install prefixed version:
In case you have conflicts with different `nikic/php-parser` version, e.g. while using PHPStan, you can: ```bash
composer require --dev rector/rector-prefixed
- either use [phpstan-shim](https://github.com/phpstan/phpstan-shim) that solves this for PHPStan ```
- or help with similar [prefixed PHAR for Rector](https://github.com/rectorphp/rector/issues/177)
### Extra Autoloading ### Extra Autoloading