Skip to content

Commit

Permalink
Composer: allow composer installers 2.x
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed Oct 4, 2023
1 parent 1d842f2 commit 27e4918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 27e4918

Please sign in to comment.