From 8f6f667c5b361e180566b8641ab5c580fbef4c1d Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Tue, 24 Aug 2021 08:54:10 +0200 Subject: [PATCH] docs: Add composer v2 note for excluding single requirements --- docs/usage/configuration-options.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index c021f85fcafc61..29ffd6dd478b3a 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -364,6 +364,7 @@ However, this also means that all platform constraints (including PHP version) w To solve this, you should configure explicit ignored platform requirements (for example `ext-zip`) by setting them separately in this array. Each item will be added to the Composer command with `--ignore-platform-req`, resulting in it being ignored during its invocation. +Note that this requires your project to use Composer V2, as V1 doesn't support excluding single platform requirements. The used PHP version will be guessed automatically from your `composer.json` definition, so `php` should not be added as explicit dependency. If an empty array is configured, Renovate uses its default behaviour.