Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use --ignore-platform-req=php+ for ignoring PHP deps #179

Open
boesing opened this issue Sep 4, 2023 · 0 comments
Open

Use --ignore-platform-req=php+ for ignoring PHP deps #179

boesing opened this issue Sep 4, 2023 · 0 comments

Comments

@boesing
Copy link
Member

boesing commented Sep 4, 2023

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Composer with v2.2 released support for ignoring upper bounds of platform requirements.
To do so, adding the + suffix to the platform requirement will suffice.

This is quite useful, since --ignore-platform-req=php will mostly ignore any dependency and thus, depending on the constraint ranges, will also allow older PHP versions which weren't supported previously. This must not be related to laminas components but since laminas does sometimes use transitive dependencies, these dependencies could have a more wider range of supported PHP versions which then might install dependencies in case of --prefer-lowest which do definitely not support the latest PHP version we are actually trying to test.


From composer documentation:

--ignore-platform-req: ignore a specific platform requirement(php, hhvm, lib-* and ext-*) and force the installation even if the local machine does not fulfill it. Multiple requirements can be ignored via wildcard. Appending a + makes it only ignore the upper-bound of the requirements. For example, if a package requires php: ^7, then the option --ignore-platform-req=php+ would allow installing on PHP 8, but installation on PHP 5.6 would still fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant