Skip to content

Commit 4f34d67

Browse files
authored
Merge pull request #22 from CorpusPHP/update-psr-http-message
Add Support for psr/http-message v2
2 parents a5c5c22 + 65097aa commit 4f34d67

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ jobs:
1212
matrix:
1313
operating-system: [ ubuntu-latest ]
1414
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
15+
psr-http-versions: [ '~1.0.0', '^1', '^2' ]
16+
exclude:
17+
- php-versions: '7.2'
18+
psr-http-versions: '^2'
19+
- php-versions: '7.3'
20+
psr-http-versions: '^2'
21+
- php-versions: '7.4'
22+
psr-http-versions: '^2'
1523

1624
runs-on: ${{ matrix.operating-system }}
1725

@@ -27,5 +35,10 @@ jobs:
2735
- name: Install dependencies with composer
2836
run: composer install
2937

38+
- name: Install PSR HTTP Message
39+
run: |
40+
rm composer.lock
41+
composer require --with-all-dependencies psr/http-message:${{ matrix.psr-http-versions }}
42+
3043
- name: Run tests
3144
run: make test

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"description": "Utilities for working with Psr7 Http Messages",
44
"type": "library",
55
"require": {
6-
"psr/http-message": "^1.0",
6+
"psr/http-message": "^1 || ^2",
77
"php": ">=7.2"
88
},
99
"require-dev": {
1010
"phpunit/phpunit": "^6.5 || ^9.3",
1111
"php-mock/php-mock-phpunit": "^2.7",
12-
"guzzlehttp/psr7": "^1.9",
12+
"guzzlehttp/psr7": "^2.4",
1313
"corpus/coding-standard": "^0.6.0",
1414
"squizlabs/php_codesniffer": "^3.7",
1515
"friendsofphp/php-cs-fixer": "^3.3",

0 commit comments

Comments
 (0)