From 532b52c4066fbb71a301cf238407127014480539 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 11 Nov 2021 15:35:08 +0100 Subject: [PATCH] Composer: update PHPUnit version constraints [2] PHPUnit 5.x allows for installation on PHP 5.6 and 7.x, however until version 5.7.26, it [used the `each()` function](https://github.com/sebastianbergmann/phpunit/issues/2472), which was deprecated in PHP 7.2, which means that test runs against PHPUnit < 5.7.26 in combination with PHP 7.2 an higher would error out. This adjustment of the version constraints means that when `composer install` is run with `--prefer-lowest` on PHP 5.6/7.x, PHPUnit 5.7.26 will be installed instead of PHP 5.7.9, preventing this issue. Ref: https://github.com/sebastianbergmann/phpunit/blob/5.7.27/ChangeLog-5.7.md --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c81fc6a..76ad670 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 <8.5.12 || ^8.5.14 || ^9.0", + "phpunit/phpunit": "^5.7.26 || ^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" },