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 Sep 27, 2023
1 parent c447993 commit 40d5ee3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"require": {
"php": "^7.2.5 || ^8.0",
"composer/installers": "^1.12.0"
"composer/installers": "^1.12.0 || ^2.0"
},
"require-dev": {
"yoast/wp-test-utils": "^1.1.1",
Expand Down
36 changes: 15 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40d5ee3

Please sign in to comment.