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

Add PHP 8.4 support #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
operating-system: [ 'ubuntu-latest' ]
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '8.0', '8.1' ]
php-versions: [ '7.1', '7.2', '7.3', '8.0', '8.1', '8.2', '8.3', '8.4' ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
}
],
"require": {
"ext-json": "*"
"ext-json": "*",
"php": ">=7.1"
},
"require-dev": {
"phperf/phpunit": "4.8.37"
Expand All @@ -27,7 +28,7 @@
},
"config": {
"platform": {
"php": "5.4.45"
"php": "7.1.33"
}
}
}
9 changes: 5 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/InvalidFieldTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
$expectedType,
$operation,
$code = 0,
Throwable $previous = null
?Throwable $previous = null
)
{
parent::__construct(
Expand Down
2 changes: 1 addition & 1 deletion src/MissingFieldException.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
$missingField,
$operation,
$code = 0,
Throwable $previous = null
?Throwable $previous = null
)
{
parent::__construct('Missing "' . $missingField . '" in operation data', $code, $previous);
Expand Down
2 changes: 1 addition & 1 deletion src/PatchTestOperationFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
$operation,
$actualValue,
$code = 0,
Throwable $previous = null
?Throwable $previous = null
)
{
parent::__construct('Test operation ' . json_encode($operation, JSON_UNESCAPED_SLASHES)
Expand Down
2 changes: 1 addition & 1 deletion src/PathException.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(
$operation,
$field,
$code = 0,
Throwable $previous = null
?Throwable $previous = null
)
{
parent::__construct($message, $code, $previous);
Expand Down
2 changes: 1 addition & 1 deletion src/UnknownOperationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UnknownOperationException extends Exception
public function __construct(
$operation,
$code = 0,
Throwable $previous = null
?Throwable $previous = null
)
{
// @phpstan-ignore-next-line MissingFieldOperation will be thrown if op is not set
Expand Down
Loading