laminas / laminas-dependency-plugin

Replace zendframework and zfcampus packages with their Laminas Project equivalents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignored platform requirements are not passed to lock update command

boesing opened this issue · comments

Bug Report

Q A
Version(s) 2.1.0

Summary

In case, platform requirements are being ignored, the composer v2 plugin does not properly pass those arguments to the lock-Update command.

Current behavior

When executing composer update --prefer-lowest --prefer-stable --ignore-platform-req=php on PHP 8.0, it is most likely the case, that a version of a package is being installed which is not compatible with PHP 8.0.

As of the base functionality of the composer v2 plugin, we have to update the composer.lock after the command mentioned above has finished.

The composer update --lock command needs those Arguments which are used to ignore platform requirements aswell.

How to reproduce

https://travis-ci.com/github/laminas/laminas-servicemanager/jobs/456178037#L639

Expected behavior

Downgrade works and installs laminas/laminas-code v3.3.1 even tho it does not support PHP 8.0.

Closed with #29