Since Composer 2, Travis CI PHPCS checks using woocommerce-sniffs composer package v0.0.10 fails since Travis self-updates Composer to v2.
Errors:
Problem 1
199 - dealerdirect/phpcodesniffer-composer-installer v0.6.2 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
200 - woocommerce/woocommerce-sniffs 0.0.10 requires dealerdirect/phpcodesniffer-composer-installer 0.6.2 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.6.2].
201 - Root composer.json requires woocommerce/woocommerce-sniffs 0.0.10 -> satisfiable by woocommerce/woocommerce-sniffs[0.0.10].
Description
Since Composer 2, Travis CI PHPCS checks using
woocommerce-sniffs
composer packagev0.0.10
fails since Travis self-updates Composer to v2.Errors:
The newest version of
woocommerce-sniffs
package (v0.1.0) updates the version fordealerdirect/phpcodesniffer-composer-installer
to0.7.0
which is compatible with Composer 2. Changelog: https://github.com/woocommerce/woocommerce-sniffs/blob/master/CHANGELOG.md#010---2020-08-06