diff --git a/README.md b/README.md index 029d0e463003..da92eb69af92 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,11 @@ Rector can: ## Install ```bash -composer require --dev rector/rector:'dev-master' nikic/php-parser:'4.0.x-dev' +composer require --dev rector/rector:'dev-master' ``` ### Do you Have Conflicts? -It may also happen your dependencies are in conflict, e.g. [PHPStan](https://github.com/phpstan/phpstan) requires [PHP-Parser](https://github.com/nikic/PHP-Parser) version 3, or older PHPUnit etc. This might be solved in the future, when PHP-Parser version 4 becomes stable. - 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: ```bash @@ -51,7 +49,7 @@ composer require bamarni/composer-bin-plugin --dev Then, require Rector using `composer bin`: ```bash -composer bin rector require --dev rector/rector:'dev-master' nikic/php-parser:'4.0.x-dev' +composer bin rector require --dev rector/rector:'dev-master' ``` And Rector is accessible as: diff --git a/composer.json b/composer.json index 61aa85253d1b..274641c57bf0 100644 --- a/composer.json +++ b/composer.json @@ -12,10 +12,10 @@ "jean85/pretty-package-versions": "^1.1", "nette/robot-loader": "^3.0", "nette/utils": "^2.5", - "nikic/php-parser": "4.0.x-dev", + "nikic/php-parser": "^4.0", "phpdocumentor/reflection-docblock": "^4.3", "phpdocumentor/type-resolver": "^0.4", - "rector/better-reflection": "^3.0.6", + "roave/better-reflection": "dev-master", "sebastian/diff": "^3.0", "symfony/console": "^4.0", "symfony/dependency-injection": "^4.0",