From 71235ad7427aa34d657b0ff4883509f1062fcd6b Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 11 Nov 2021 14:56:03 +0100 Subject: [PATCH] Composer: update PHPUnit version constraints [1] While PHPUnit as of version 8.5.12 allows for installation on PHP 8.0, it still contained a [nasty bug](https://github.com/sebastianbergmann/phpunit/issues/4575) which would error out the test run with a Fatal. This bug was fixed in version 8.5.14. This adjustment of the version constraint means that when `composer install` is run with `--prefer-lowest` on PHP 8.0.x, PHPUnit 8.5.14 will be installed instead of PHP 8.5.12, while still allowing for all other versions in all other circumstances. Ref: https://github.com/sebastianbergmann/phpunit/blob/8.5/ChangeLog-8.5.md --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 71e98bb..c81fc6a 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "antecedent/patchwork": "^2.1.17" }, "require-dev": { - "phpunit/phpunit": "^5.7.9 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "phpunit/phpunit": "^5.7.9 || ^6.0 || ^7.0 || >=8.0 <8.5.12 || ^8.5.14 || ^9.0", "phpcompatibility/php-compatibility": "^9.3.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1" },