From a0689c4bdb24458d78d34923f3982cd1f66a4750 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 22 Oct 2020 12:47:10 +0200 Subject: [PATCH 1/2] Fix the composer provide rule This package does not provide the code of the psr/http-factory package (which defines interfaces). It provides psr/http-factory-implementation which is the virtual package to represent implementations of the interface. Providing the wrong package while also requiring it creates issues with Composer 2, because the solver will consider that install psr/http-factory is not necessary as it is already provided. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7f84f0f..66d88e6 100644 --- a/composer.json +++ b/composer.json @@ -46,7 +46,7 @@ "squizlabs/php_codesniffer": "^3.5" }, "provide": { - "psr/http-factory": "^1.0" + "psr/http-factory-implementation": "1.0" }, "autoload": { "psr-4": { From e374c232c0745bd9d984f635a7434c3cd6165960 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 26 Oct 2020 10:18:58 +0100 Subject: [PATCH 2/2] Remove the provide rule entirely This package does not provide a standalone implementation of psr/http-factory but only decorators --- composer.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/composer.json b/composer.json index 66d88e6..efbb744 100644 --- a/composer.json +++ b/composer.json @@ -45,9 +45,6 @@ "phpunit/phpunit": "^8.5", "squizlabs/php_codesniffer": "^3.5" }, - "provide": { - "psr/http-factory-implementation": "1.0" - }, "autoload": { "psr-4": { "Slim\\Http\\": "src/"