Skip to content

Commit 2f89043

Browse files
Fixed CI on PHP 8
1 parent dc03386 commit 2f89043

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ jobs:
3434
max_attempts: 5
3535
command: composer update --no-interaction --no-progress
3636

37+
- name: Remove Guzzle 6
38+
uses: nick-invision/retry@v1
39+
with:
40+
timeout_minutes: 5
41+
max_attempts: 5
42+
command: composer remove php-http/guzzle6-adapter --dev --no-update --no-interaction
43+
if: matrix.php >= 8
44+
45+
- name: Install Guzzle 7
46+
uses: nick-invision/retry@v1
47+
with:
48+
timeout_minutes: 5
49+
max_attempts: 5
50+
command: composer require php-http/guzzle7-adapter --dev --no-update --no-interaction
51+
if: matrix.php >= 8
52+
3753
- name: Install PHPUnit
3854
uses: nick-invision/retry@v1
3955
with:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"require-dev": {
4242
"bamarni/composer-bin-plugin": "^1.4.1",
4343
"guzzlehttp/psr7": "^1.7",
44-
"php-http/guzzle6-adapter": "^2.0.1",
45-
"http-interop/http-factory-guzzle": "^1.0"
44+
"http-interop/http-factory-guzzle": "^1.0",
45+
"php-http/guzzle6-adapter": "^2.0.1"
4646
},
4747
"autoload": {
4848
"psr-4": {

0 commit comments

Comments
 (0)