Skip to content

Commit

Permalink
Merge branch 'release/3.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris committed Nov 30, 2024
2 parents 72b308c + d3f8f49 commit 1969ba6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
laravel: [11]
php: [8.2, 8.3, 8.4]
core: ['4.3.2', '5.0.1']

steps:
- name: Checkout Code
Expand All @@ -30,8 +30,8 @@ jobs:
coverage: none
ini-values: error_reporting=E_ALL

- name: Set Laravel Version
run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
- name: Set Laravel JSON:API Core Version
run: composer require "laravel-json-api/core:^${{ matrix.core }}" --no-update

- name: Install dependencies
uses: nick-fields/retry@v3
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. This projec

## Unreleased

## [3.1.0] - 2024-11-30

### Added

- Allow `laravel-json-api/core` v4 and v5.

### Fixed

- Remove deprecation notices for PHP 8.4.

## [3.0.0] - 2024-03-12

### Changed
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"ext-json": "*",
"illuminate/contracts": "^11.0",
"illuminate/pipeline": "^11.0",
"laravel-json-api/core": "^4.0",
"laravel-json-api/validation": "^4.0"
"laravel-json-api/core": "^4.3.2|^5.0.1",
"laravel-json-api/validation": "^4.2"
},
"require-dev": {
"laravel-json-api/testing": "^3.0",
Expand All @@ -50,7 +50,7 @@
"dev-develop": "3.x-dev"
}
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"sort-packages": true
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
failOnWarning="true"
failOnDeprecation="true"
failOnNotice="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
>
<coverage/>
<testsuites>
Expand Down
2 changes: 1 addition & 1 deletion src/Pipes/ValidationExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ValidationExceptionHandler
*/
public function __construct(
private readonly Factory $factory,
Translator $translator = null,
?Translator $translator = null,
) {
$this->translator = $translator;
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Integration/ExceptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function testRequestException(): void
$expected = [
'errors' => [
[
'detail' => 'Your request is badly formatted.',
'detail' => 'Bad request.',
'status' => '400',
'title' => 'Bad Request',
],
Expand All @@ -387,6 +387,7 @@ public function testRequestExceptionWithoutMessage(): void
$expected = [
'errors' => [
[
'detail' => 'Bad request.',
'status' => '400',
'title' => 'Bad Request',
],
Expand Down

0 comments on commit 1969ba6

Please sign in to comment.