mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
README: add note
This commit is contained in:
parent
654fea839c
commit
9976f988f1
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user