From d50e8826854f3060593b8ab5c1105a15967b1d80 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Sun, 4 Feb 2024 23:16:40 +0100 Subject: [PATCH 1/2] Allow PHPUnit 11 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 83a8818..c3918a1 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": "^7.3 || ^8", "phpspec/prophecy": "^1.18", - "phpunit/phpunit":"^9.1 || ^10.1" + "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0" }, "autoload": { "psr-4": { From 3a3dbce1fd12cb1862190e96aef92a1b92c4c7df Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Sun, 4 Feb 2024 23:19:23 +0100 Subject: [PATCH 2/2] Require phpspec/prophecy#616 to actually allow PHPUnit 11 --- composer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c3918a1..2eb2d85 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,15 @@ "prefer-stable": true, "require": { "php": "^7.3 || ^8", - "phpspec/prophecy": "^1.18", + "phpspec/prophecy": "dev-allow-phpunit-11 as 1.19", "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0" }, + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/jean85/prophecy" + } + ], "autoload": { "psr-4": { "Prophecy\\PhpUnit\\": "src"