Skip to content

Commit

Permalink
Merge pull request #18 from phpro/PHP82
Browse files Browse the repository at this point in the history
Allow PHP82
  • Loading branch information
veewee authored Nov 25, 2022
2 parents 7359a7e + 2a25fea commit 7e37848
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/grumphp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.0', '8.1']
php-versions: ['8.0', '8.1', '8.2']
composer-options: ['', '--prefer-lowest']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-options }}
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} --ignore-platform-reqs
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} --ignore-platform-req=php+
- name: Set git variables
run: |
git config --global user.email "[email protected]"
Expand Down
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"description": "RFC7807 Problem details implementation",
"type": "library",
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3",
"phpro/grumphp-shim": "^1.6",
"phpspec/phpspec": "^7.0",
"symfony/validator": "^5.3 || ^6.0",
"friendsofphp/php-cs-fixer": "^3.13",
"phpro/grumphp-shim": "^1.14",
"phpspec/phpspec": "^7.2",
"symfony/validator": "^5.4 || ^6.0",
"sebastian/comparator": "^4.0"
},
"license": "MIT",
Expand All @@ -20,7 +20,10 @@
"php": "^8.0"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpro/grumphp-shim": true
}
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions src/Http/ExceptionApiProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Phpro\ApiProblem\Http;

use function get_class;

use Phpro\ApiProblem\DebuggableApiProblemInterface;
use Throwable;

Expand Down

0 comments on commit 7e37848

Please sign in to comment.