sebastianbergmann/phpcpd

Bump sebastian/version dependency?

aripringle opened this issue · 0 comments

The recent releases of phploc (6.0.0) and phpcpd (5.0.1) have incompatible dependencies on sebastian/version (phploc requires ^3.0, phpcpd requires ^2.0). Is it possible to add support for sebastian/version ^3.0?

# composer global require phploc/phploc
Changed current directory to /usr/local/composer
Using version ^6.0 for phploc/phploc
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 10 installs, 0 updates, 0 removals
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/service-contracts (v2.0.1): Downloading (100%)
  - Installing symfony/polyfill-php73 (v1.14.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.14.0): Downloading (100%)
  - Installing symfony/console (v5.0.4): Downloading (100%)
  - Installing sebastian/version (3.0.0): Downloading (100%)
  - Installing symfony/finder (v5.0.4): Downloading (100%)
  - Installing theseer/fdomdocument (1.6.6): Downloading (100%)
  - Installing sebastian/finder-facade (2.0.0): Downloading (100%)
  - Installing phploc/phploc (6.0.0): Downloading (100%)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files

# composer global require sebastian/phpcpd
Changed current directory to /usr/local/composer
Using version ^5.0 for sebastian/phpcpd
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install sebastian/phpcpd 5.0.1
    - Conclusion: don't install sebastian/phpcpd 5.0.0|remove sebastian/version 3.0.0
    - Conclusion: don't install sebastian/phpcpd 5.0.0|don't install sebastian/version 3.0.0
    - Installation request for sebastian/phpcpd ^5.0 -> satisfiable by sebastian/phpcpd[5.0.0, 5.0.1].
    - sebastian/phpcpd 5.0.0 requires sebastian/version ^2.0 -> satisfiable by sebastian/version[2.0.0, 2.0.1].
    - Can only install one of: sebastian/version[2.0.0, 3.0.0].
    - Can only install one of: sebastian/version[2.0.1, 3.0.0].
    - Installation request for sebastian/version (locked at 3.0.0) -> satisfiable by sebastian/version[3.0.0].


Installation failed, reverting ./composer.json to its original content.