CyberSource / cybersource-rest-client-php

PHP client library for the CyberSource REST API
29 stars 65 forks source link

Issue updating from 0.0.7 to 0.0.21 #80

Closed D41161195 closed 3 years ago

D41161195 commented 3 years ago

When I try to require version 0.0.21, I get the following error

Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: cache/apcu-adapter[1.1.0, 1.0.0].
    - Can only install one of: cache/apcu-adapter[1.1.0, 1.0.0].
    - cybersource/rest-client-php 0.0.23 requires cache/apcu-adapter 1.1.0 -> satisfiable by cache/apcu-adapter[1.1.0].
    - Installation request for cybersource/rest-client-php ^0.0.23 -> satisfiable by cybersource/rest-client-php[0.0.23].
    - Installation request for cache/apcu-adapter (locked at 1.0.0) -> satisfiable by cache/apcu-adapter[1.0.0].

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

I cannot seem to get my app to accept the new version.

D41161195 commented 3 years ago

I don't know why it shows cache/apcu-adapter (locked at 1.0.0) because that package is not in my composer.json. It's only required by cybersource/rest-client-php.

D41161195 commented 3 years ago

I fixed this by uninstalling the module and re-installing it.
composer remove "cybersource/rest-client-php" then composer require "cybersource/rest-client-php:0.0.21@dev"