Closed glodov closed 3 years ago
This plugin is perfectly compatible with Composer 2.0. In fact, a version making it compatible was released over a year ago.
See the issue which has been pinned to the issue board for quite a while for a solution: #119
TL;DR: You need to explicitly upgrade dealerdirect/phpcodesniffer-composer-installer
to ^0.7
To quote the relevant part from #119 :
Composer treats minors below
1.0
as majors, so you need to explicitly upgrade your version constraints to allow for version0.7.x
of this plugin.Version
0.7.0
was released last June and is fully ready for Composer 2.0, while also still supporting Composer 1.0. https://github.com/Dealerdirect/phpcodesniffer-composer-installer/releases/tag/v0.7.0So:
composer require --dev dealerdirect/phpcodesniffer-composer-installer:"^0.7.0"
and your problem should be fixed.
I am trying to create a WordPress Coding Standard project:
composer create-project wp-coding-standards/wpcs --no-dev
and getting an error: