composer update "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

 Problem 1
   - drupal/core-recommended[9.4.0, ..., 9.4.9] require laminas/laminas-feed ~2.17.0 -> satisfiable by laminas/laminas-feed[2.17.0].
   - laminas/laminas-feed[2.15.0, ..., 2.17.0] require php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement.
   - Root composer.json requires drupal/core-recommended ^9.4 -> satisfiable by drupal/core-recommended[9.4.0, ..., 9.4.9].

The above message is thrown when I execute the composer update command. I have no idea how I can resolve that. I edited the composer.json files for all the laminas folders, though it does not have the desired effect.

How can I solve this to resume updating?

Comments

jaypan’s picture

Switch to PHP 8.1. PHP 8.2 is not yet current.

Contact me to contract me for D7 -> D10/11 migrations.

tneo’s picture

Aha. Okay. Downgraded to 8.1.13 and issue is resolved. :-)

Juraj Morong’s picture

I changed the PHP version in webhosting settings to 8.1 but it didn't help. Composer says that the PHP version is incorrect.

  Problem 1
    - laminas/laminas-diactoros 2.14.0 requires php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement.
    - drupal/core-recommended 9.5.0 requires laminas/laminas-diactoros ~2.14.0 -> satisfiable by laminas/laminas-diactoros[2.14.0].
    - Root composer.json requires drupal/core-recommended ^9.5 -> satisfiable by drupal/core-recommended[9.5.0].
Where is the problem please? Thank you.
pheski’s picture

...your php version is 8.2.0. You need to check your hosting environment to see why your change to 8.1 is not live.

portulaca’s picture

I'm getting the same message when trying to upgrade from D9.5 on PHP 8.2.

Does this mean that this page needs to be corrected WRT PHP 8.2: PHP requirements?

I had to upgrade from PHP 7 to PHP 8 in order to upgrade Drupal from 8 to 9.

I upgraded directly to PHP 8.2 because the main goal is to upgrade to D10 and the requirements state PHP 8.2 is supported.

I was able to upgrade to D9.5 on PHP 8.2, but now I can't upgrade from D9.5 to D10 on the same PHP version?

jaypan’s picture

Does this mean that this page needs to be corrected WRT PHP 8.2: PHP requirements?

No. The original poster was getting the message from the laminas/laminas-feed library, not Drupal core. Drupal core is PHP 8.2 compatible, but that does not mean all modules are.

Contact me to contract me for D7 -> D10/11 migrations.

joelpittet’s picture

I ran into this while trying to do some 9.x core development with PHP 8.2

I got around it by following this tweet:

https://twitter.com/seldaek/status/1577349406382342144

Add this flag to the problem.

--ignore-platform-req=php+

Example:

composer require cweagans/composer-patches:^1.0 --ignore-platform-req=php+

Hope that helps others too.

gzveri’s picture

I can confirm that adding 

--ignore-platform-req=php+

at the end of composer require command has fixed the error and I was able to install a lot of modules for D9.

thank you 

joelpittet for the suggestion.

clau_bolson’s picture

Thank you!

vijayasri01’s picture

It helped, Thank you.

aryashreep’s picture

Thank you, it helped a lot.

composer install --ignore-platform-req=php+ -vvv
binnythomas’s picture

I got the same error and it was blocking deployment. Finally figured out that it was not required by Drupal core but by the upgrade status module. Removing the upgrade status module solved the issue. Hope this helps someone else.

jkwilson’s picture

@binnythomas, good catch. Was my issue too.

jtjones23’s picture

@binnythomas, good catch. Was also my issue too.