Skip to content

Commit 7e37848

Browse files
authored
Merge pull request #18 from phpro/PHP82
Allow PHP82
2 parents 7359a7e + 2a25fea commit 7e37848

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/grumphp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.0', '8.1']
10+
php-versions: ['8.0', '8.1', '8.2']
1111
composer-options: ['', '--prefer-lowest']
1212
fail-fast: false
1313
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-options }}
@@ -35,7 +35,7 @@ jobs:
3535
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
3636
restore-keys: ${{ runner.os }}-composer-
3737
- name: Install dependencies
38-
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} --ignore-platform-reqs
38+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} --ignore-platform-req=php+
3939
- name: Set git variables
4040
run: |
4141
git config --global user.email "[email protected]"

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "RFC7807 Problem details implementation",
44
"type": "library",
55
"require-dev": {
6-
"friendsofphp/php-cs-fixer": "^3.3",
7-
"phpro/grumphp-shim": "^1.6",
8-
"phpspec/phpspec": "^7.0",
9-
"symfony/validator": "^5.3 || ^6.0",
6+
"friendsofphp/php-cs-fixer": "^3.13",
7+
"phpro/grumphp-shim": "^1.14",
8+
"phpspec/phpspec": "^7.2",
9+
"symfony/validator": "^5.4 || ^6.0",
1010
"sebastian/comparator": "^4.0"
1111
},
1212
"license": "MIT",
@@ -20,7 +20,10 @@
2020
"php": "^8.0"
2121
},
2222
"config": {
23-
"sort-packages": true
23+
"sort-packages": true,
24+
"allow-plugins": {
25+
"phpro/grumphp-shim": true
26+
}
2427
},
2528
"autoload": {
2629
"psr-4": {

src/Http/ExceptionApiProblem.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Phpro\ApiProblem\Http;
66

77
use function get_class;
8+
89
use Phpro\ApiProblem\DebuggableApiProblemInterface;
910
use Throwable;
1011

0 commit comments

Comments
 (0)