algolia / algoliasearch-client-php

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
https://www.algolia.com/doc/api-client/php/getting-started/
MIT License
671 stars 116 forks source link

Fix psr/log issue #692

Closed it-can closed 2 years ago

it-can commented 2 years ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix #691
Need Doc update no

Describe your change

Updating composer.json to allow psr/log 1 & 2

What problem is this fixing?

composer require algolia/algoliasearch-client-php
Using version ^3.1 for algolia/algoliasearch-client-php
./composer.json has been updated
Running composer update algolia/algoliasearch-client-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires algolia/algoliasearch-client-php ^3.1 -> satisfiable by algolia/algoliasearch-client-php[3.1.0].
    - algolia/algoliasearch-client-php 3.1.0 requires psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 2.0.0 (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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require algolia/algoliasearch-client-php:*" to figure out if any version is installable, or "composer require algolia/algoliasearch-client-php:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.