rector-book-feedback
rector-book-feedback copied to clipboard
Installing php-parser-instantiation-printer
On page 12, when I run the command to install php-parser-instantiation-printer in my project, I get composer errors and it does not install. I'm using php 8.2.8.
composer require --dev matthiasnoback/php-parser-instantiation-printer
./composer.json has been updated
Running composer update matthiasnoback/php-parser-instantiation-printer
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- matthiasnoback/php-parser-instantiation-printer v0.1.0 requires php ^7.4 -> your php version (8.2.8) does not satisfy that requirement.
- matthiasnoback/php-parser-instantiation-printer[v0.1.1, ..., v0.2.0] require nikic/php-parser ^4.10 -> found nikic/php-parser[v4.10.0, ..., v4.18.0] but it conflicts with your root composer.json require (^5.0).
- Root composer.json requires matthiasnoback/php-parser-instantiation-printer * -> satisfiable by matthiasnoback/php-parser-instantiation-printer[v0.1.0, v0.1.1, v0.2.0].
Okay, I have upgraded the matthiasnoback/php-parser-instantiation-printer package to php-parser 5 can you try again?