From bed5017704c1e302048d5cfcc45e649e1454f534 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 27 Apr 2023 19:52:15 +0200 Subject: [PATCH] Rely on abstract packages to auto-install PSR-17 factories --- composer.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 9924ca1..1aebe61 100644 --- a/composer.json +++ b/composer.json @@ -12,14 +12,13 @@ ], "require": { "php": "^7.1 || ^8.0", - "psr/http-message": "^1.0 || ^2.0", - "psr/http-factory": "^1.0", - "php-http/message-factory": "^1.0.2", - "php-http/discovery": "^1.7" + "php-http/discovery": "^1.15", + "psr/http-factory-implementation": "^1.0" }, "require-dev": { "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.3", "php-http/message": "^1.5", + "php-http/message-factory": "^1.0.2", "nyholm/psr7": "^1.0" }, "autoload": { @@ -35,5 +34,10 @@ "scripts": { "test": "vendor/bin/phpunit", "test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml" + }, + "config": { + "allow-plugins": { + "php-http/discovery": false + } } }