Skip to content

Commit 1b5a189

Browse files
committed
Merge branch 'develop' into next
2 parents 13d064d + 20819fb commit 1b5a189

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.2, 8.3]
18-
laravel: [11]
17+
php: [8.2, 8.3, 8.4]
1918

2019
steps:
2120
- name: Checkout Code
@@ -30,9 +29,6 @@ jobs:
3029
coverage: none
3130
ini-values: error_reporting=E_ALL
3231

33-
- name: Set Laravel Version
34-
run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
35-
3632
- name: Install dependencies
3733
uses: nick-fields/retry@v3
3834
with:

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased
77

8+
## [3.1.0] - 2024-11-30
9+
10+
### Added
11+
12+
- Allow `laravel-json-api/core` v4 and v5.
13+
14+
### Fixed
15+
16+
- Remove deprecation notices for PHP 8.4.
17+
818
## [3.0.0] - 2024-03-12
919

1020
### Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"ext-json": "*",
2828
"illuminate/contracts": "^11.0",
2929
"illuminate/pipeline": "^11.0",
30-
"laravel-json-api/core": "^5.0",
30+
"laravel-json-api/core": "^6.0",
3131
"laravel-json-api/validation": "^5.0"
3232
},
3333
"require-dev": {

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
failOnWarning="true"
1414
failOnDeprecation="true"
1515
failOnNotice="true"
16+
displayDetailsOnTestsThatTriggerDeprecations="true"
1617
>
1718
<coverage/>
1819
<testsuites>

src/Pipes/ValidationExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ValidationExceptionHandler
3636
*/
3737
public function __construct(
3838
private readonly Factory $factory,
39-
Translator $translator = null,
39+
?Translator $translator = null,
4040
) {
4141
$this->translator = $translator;
4242
}

tests/Integration/ExceptionsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public function testRequestException(): void
364364
$expected = [
365365
'errors' => [
366366
[
367-
'detail' => 'Your request is badly formatted.',
367+
'detail' => 'Bad request.',
368368
'status' => '400',
369369
'title' => 'Bad Request',
370370
],
@@ -387,6 +387,7 @@ public function testRequestExceptionWithoutMessage(): void
387387
$expected = [
388388
'errors' => [
389389
[
390+
'detail' => 'Bad request.',
390391
'status' => '400',
391392
'title' => 'Bad Request',
392393
],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy