From 27e4918859d1e530f37b5cc4abe0f8362f7cced6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 16 Sep 2023 07:08:36 +0200 Subject: [PATCH] Composer: allow composer installers 2.x While the latest version of the `composer/installers` package is `2.2`, I'm explicitly setting the version constraint to a lenient one as this is a non-`dev` requirement, which comes into play when people use a [WP]Packagist based site setup. If we set the requirement very strictly, it could conflict with other plugins with different constraints and it is not as if any of the 2.x releases have touched the WordPress installer, so setting it to `|| 2.0` should be fine. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3bc1623d7..7b200dc6f 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ }, "require": { "php": "^7.2.5 || ^8.0", - "composer/installers": "^1.12.0" + "composer/installers": "^1.12.0 || ^2.0" }, "require-dev": { "yoast/yoastcs": "^2.3.1",