File tree 6 files changed +21
-9
lines changed
6 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 14
14
strategy :
15
15
fail-fast : true
16
16
matrix :
17
- php : [8.2, 8.3]
18
- laravel : [11 ]
17
+ php : [8.2, 8.3, 8.4 ]
18
+ core : ['4.3.2', '5.0.1' ]
19
19
20
20
steps :
21
21
- name : Checkout Code
30
30
coverage : none
31
31
ini-values : error_reporting=E_ALL
32
32
33
- - name : Set Laravel Version
34
- run : composer require "illuminate/contracts :^${{ matrix.laravel }}" --no-update
33
+ - name : Set Laravel JSON:API Core Version
34
+ run : composer require "laravel-json-api/core :^${{ matrix.core }}" --no-update
35
35
36
36
- name : Install dependencies
37
37
uses : nick-fields/retry@v3
Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. This projec
5
5
6
6
## Unreleased
7
7
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
+
8
18
## [ 3.0.0] - 2024-03-12
9
19
10
20
### Changed
Original file line number Diff line number Diff line change 27
27
"ext-json" : " *" ,
28
28
"illuminate/contracts" : " ^11.0" ,
29
29
"illuminate/pipeline" : " ^11.0" ,
30
- "laravel-json-api/core" : " ^4.0 " ,
31
- "laravel-json-api/validation" : " ^4.0 "
30
+ "laravel-json-api/core" : " ^4.3.2|^5.0.1 " ,
31
+ "laravel-json-api/validation" : " ^4.2 "
32
32
},
33
33
"require-dev" : {
34
34
"laravel-json-api/testing" : " ^3.0" ,
50
50
"dev-develop" : " 3.x-dev"
51
51
}
52
52
},
53
- "minimum-stability" : " dev " ,
53
+ "minimum-stability" : " stable " ,
54
54
"prefer-stable" : true ,
55
55
"config" : {
56
56
"sort-packages" : true
Original file line number Diff line number Diff line change 13
13
failOnWarning =" true"
14
14
failOnDeprecation =" true"
15
15
failOnNotice =" true"
16
+ displayDetailsOnTestsThatTriggerDeprecations =" true"
16
17
>
17
18
<coverage />
18
19
<testsuites >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class ValidationExceptionHandler
36
36
*/
37
37
public function __construct (
38
38
private readonly Factory $ factory ,
39
- Translator $ translator = null ,
39
+ ? Translator $ translator = null ,
40
40
) {
41
41
$ this ->translator = $ translator ;
42
42
}
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ public function testRequestException(): void
364
364
$ expected = [
365
365
'errors ' => [
366
366
[
367
- 'detail ' => 'Your request is badly formatted . ' ,
367
+ 'detail ' => 'Bad request. ' ,
368
368
'status ' => '400 ' ,
369
369
'title ' => 'Bad Request ' ,
370
370
],
@@ -387,6 +387,7 @@ public function testRequestExceptionWithoutMessage(): void
387
387
$ expected = [
388
388
'errors ' => [
389
389
[
390
+ 'detail ' => 'Bad request. ' ,
390
391
'status ' => '400 ' ,
391
392
'title ' => 'Bad Request ' ,
392
393
],
You can’t perform that action at this time.
0 commit comments