Skip to content

Commit 58e64ff

Browse files
jmlerouxondrejmirtes
authored andcommitted
Add PHPUnit compatibility for PHP 7.2
1 parent 8a8d053 commit 58e64ff

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/workflows/build.yml

-12
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ jobs:
3333
coverage: "none"
3434
php-version: "${{ matrix.php-version }}"
3535

36-
- name: "Downgrade PHPUnit"
37-
if: matrix.php-version == '7.2'
38-
run: "composer require --dev phpunit/phpunit:^8.5.29 --no-update --update-with-dependencies"
39-
4036
- name: "Validate Composer"
4137
run: "composer validate"
4238

@@ -101,10 +97,6 @@ jobs:
10197
coverage: "none"
10298
php-version: "${{ matrix.php-version }}"
10399

104-
- name: "Downgrade PHPUnit"
105-
if: matrix.php-version == '7.2'
106-
run: "composer require --dev phpunit/phpunit:^8.5.29 --no-update --update-with-dependencies"
107-
108100
- name: "Install lowest dependencies"
109101
if: ${{ matrix.dependencies == 'lowest' }}
110102
run: "composer update --prefer-lowest --no-interaction --no-progress"
@@ -146,10 +138,6 @@ jobs:
146138
extensions: mbstring
147139
tools: composer:v2
148140

149-
- name: "Downgrade PHPUnit"
150-
if: matrix.php-version == '7.2'
151-
run: "composer require --dev phpunit/phpunit:^8.5.29 --no-update --update-with-dependencies"
152-
153141
- name: "Install lowest dependencies"
154142
if: ${{ matrix.dependencies == 'lowest' }}
155143
run: "composer update --prefer-lowest --no-interaction --no-progress"

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"php-parallel-lint/php-parallel-lint": "^1.2",
2626
"phpstan/phpstan-phpunit": "^1.0",
2727
"phpstan/phpstan-strict-rules": "^1.0",
28-
"phpunit/phpunit": "^9.5",
28+
"phpunit/phpunit": "^8.5.29 || ^9.5",
2929
"psr/container": "1.0 || 1.1.1",
3030
"symfony/config": "^5.4 || ^6.1",
3131
"symfony/console": "^5.4 || ^6.1",

0 commit comments

Comments
 (0)