Skip to content

requires nikic/php-parser 4.10.4 not be resolved #6408

@Barmunksu

Description

@Barmunksu

laravel 6 lts

# php composer.phar require rector/rector --dev
Using version ^0.10.22 for rector/rector
./composer.json has been updated
Running composer update rector/rector
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - rector/rector dev-main requires php ^8.0 -> your php version (7.3.17) does not satisfy that requirement.
    - rector/rector 0.10.22 requires nikic/php-parser 4.10.4 -> found nikic/php-parser[v4.10.4] but the package is fixed to v4.10.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - rector/rector 0.10.x-dev is an alias of rector/rector dev-main and thus requires it to be installed too.
    - Root composer.json requires rector/rector ^0.10.22 -> satisfiable by rector/rector[0.10.22, 0.10.x-dev (alias of dev-main)].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions