infusionsoft / infusionsoft-php

PHP client library for the Infusionsoft API.
https://developer.infusionsoft.com/
Other
130 stars 128 forks source link

- Downgrading psr/log (2.0.0 => 1.1.4) on Larvel 8.83.11 #298

Open raulamoretti opened 2 years ago

raulamoretti commented 2 years ago

Hey guys!

I try to install composer require infusionsoft/php-sdk on Laravel 8.83.11 and I need do a change !

composer require infusionsoft/php-sdk
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^1.5 for infusionsoft/php-sdk
./composer.json has been updated
Running composer update infusionsoft/php-sdk
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - infusionsoft/php-sdk[1.5.0, ..., 1.5.2] require 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.
    - Root composer.json requires infusionsoft/php-sdk ^1.5 -> satisfiable by infusionsoft/php-sdk[1.5.0, 1.5.1, 1.5.2].

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 infusionsoft/php-sdk:*" to figure out if any version is installable, or "composer require infusionsoft/php-sdk:^2.1" if you know which you need.

With - Downgrading psr/log (2.0.0 => 1.1.4)

composer require infusionsoft/php-sdk --with-all-dependencies
Using version ^1.5 for infusionsoft/php-sdk
./composer.json has been updated
Running composer update infusionsoft/php-sdk --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 10 installs, 1 update, 0 removals
  - Locking clue/stream-filter (v1.6.0)
  - Locking infusionsoft/php-sdk (1.5.2)
  - Locking laminas/laminas-diactoros (2.10.0)
  - Locking lstrojny/fxmlrpc (0.20.0)
  - Locking php-http/discovery (1.14.1)
  - Locking php-http/guzzle7-adapter (0.1.1)
  - Locking php-http/httplug (2.3.0)
  - Locking php-http/message (1.13.0)
  - Locking php-http/message-factory (v1.0.2)
  - Locking php-http/promise (1.1.0)
  - Downgrading psr/log (2.0.0 => 1.1.4)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 10 installs, 1 update, 0 removals
  - Downloading php-http/message-factory (v1.0.2)
  - Downloading clue/stream-filter (v1.6.0)
  - Downloading php-http/message (1.13.0)
  - Downloading php-http/promise (1.1.0)
  - Downloading php-http/httplug (2.3.0)
  - Downloading php-http/guzzle7-adapter (0.1.1)
  - Downloading php-http/discovery (1.14.1)
  - Downloading lstrojny/fxmlrpc (0.20.0)
  - Downloading laminas/laminas-diactoros (2.10.0)
  - Downloading infusionsoft/php-sdk (1.5.2)
  - Downgrading psr/log (2.0.0 => 1.1.4): Extracting archive
  - Installing php-http/message-factory (v1.0.2): Extracting archive
  - Installing clue/stream-filter (v1.6.0): Extracting archive
  - Installing php-http/message (1.13.0): Extracting archive
  - Installing php-http/promise (1.1.0): Extracting archive
  - Installing php-http/httplug (2.3.0): Extracting archive
  - Installing php-http/guzzle7-adapter (0.1.1): Extracting archive
  - Installing php-http/discovery (1.14.1): Extracting archive
  - Installing lstrojny/fxmlrpc (0.20.0): Extracting archive
  - Installing laminas/laminas-diactoros (2.10.0): Extracting archive
  - Installing infusionsoft/php-sdk (1.5.2): Extracting archive
6 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
Class Infusionsoft\Api\Rest\AbstractApi located in ./vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/RestApi.php does not comply with psr-0 autoloading standard. Skipping.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: berkayk/onesignal-laravel
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: gecche/laravel-multidomain
Discovered Package: infusionsoft/php-sdk
Discovered Package: intervention/image
Discovered Package: laravel/sail
Discovered Package: laravel/slack-notification-channel
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: orangehill/iseed
Discovered Package: spatie/laravel-ignition
Package manifest generated successfully.
84 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
mfadul24 commented 2 years ago

See https://github.com/infusionsoft/infusionsoft-php/pull/297