Skip to content

Commit

Permalink
Composer: update PHPUnit version constraints [2]
Browse files Browse the repository at this point in the history
PHPUnit 5.x allows for installation on PHP 5.6 and 7.x, however until version 5.7.26, it [used the `each()` function](sebastianbergmann/phpunit#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
  • Loading branch information
jrfnl committed Nov 11, 2021
1 parent 9323e96 commit 532b52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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"
},
Expand Down

0 comments on commit 532b52c

Please sign in to comment.