wp-cli / package-command

Lists, installs, and removes WP-CLI packages.
MIT License
17 stars 20 forks source link

Fix compatibility with newer Composer versions #183

Closed schlessera closed 11 months ago

schlessera commented 11 months ago

Fixes #172 Supersedes https://github.com/wp-cli/wp-cli/pull/5757/

This PR adds a compatiblity shim for ComposerIO\NullIO so that it works with Composer 2.3+ which added type declarations and thereby changed method signatures and broke BC.

This PR moves the ComposerIO class over from the wp-cli/wp-cli. This seems to have been a left-ver from when the original WP-CLI monorepo was split up.

The PR also removes the upper limit on the Composer version now, and was successfully tested with Composer 2.6+.

Props to @stefanfisk for a lot of the initial digging and work on the previous PR.