Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PHP82 #18

Merged
merged 1 commit into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "you@example.com"
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