llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
371 stars 21 forks source link

[6.1] Composer 1 is no more supported #320

Closed llaville closed 2 years ago

llaville commented 2 years ago

Because v6.1 introduced a new way to handle packages installed (CompatInfo and CompatInfoDB), we must be sure that nobody will try to install PHP_CompatInfo with Composer v1.

Patch is easy:

diff --git a/composer.json b/composer.json
index 3cd30e51..de8d86f3 100644
--- a/composer.json
+++ b/composer.json
@@ -17,6 +17,7 @@
         "ext-spl": "*",
         "bartlett/php-compatinfo-db": "^3.17",
         "bartlett/sarif-php-sdk": "^1.0",
+        "composer-runtime-api": "^2.0",
         "doctrine/collections": "^1.4",
         "nikic/php-parser": "^4.10",
         "psr/log": "^1.0",