File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
steps :
21
21
- name : Checkout Code
22
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
23
23
24
24
- name : Setup PHP
25
25
uses : shivammathur/setup-php@v2
34
34
run : composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
35
35
36
36
- name : Install dependencies
37
- uses : nick-fields/retry@v2
37
+ uses : nick-fields/retry@v3
38
38
with :
39
39
timeout_minutes : 5
40
40
max_attempts : 5
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. This projec
5
5
6
6
## Unreleased
7
7
8
+ ## [ 4.1.1] - 2024-06-20
9
+
10
+ ### Fixed
11
+
12
+ - [ laravel #287 ] ( https://github.com/laravel-json-api/laravel/issues/287 ) Use ` array_shift ` to avoid potential problem
13
+ introduced in Laravel.
14
+
8
15
## [ 4.1.0] - 2024-03-23
9
16
10
17
### Added
@@ -21,6 +28,13 @@ All notable changes to this project will be documented in this file. This projec
21
28
- ** BREAKING** Package now requires Laravel 11.
22
29
- Minimum PHP version is now ` 8.2 ` .
23
30
31
+ ## [ 3.0.1] - 2024-06-20
32
+
33
+ ### Fixed
34
+
35
+ - [ laravel #287 ] ( https://github.com/laravel-json-api/laravel/issues/287 ) Use ` array_shift ` to avoid potential problem
36
+ introduced in Laravel.
37
+
24
38
## [ 3.0.0] - 2023-02-14
25
39
26
40
### Changed
Original file line number Diff line number Diff line change 53
53
]
54
54
}
55
55
},
56
- "minimum-stability" : " dev " ,
56
+ "minimum-stability" : " stable " ,
57
57
"prefer-stable" : true ,
58
58
"config" : {
59
59
"sort-packages" : true
Original file line number Diff line number Diff line change @@ -106,13 +106,15 @@ public function getIterator(): Traversable
106
106
$ failed = $ this ->failed ();
107
107
108
108
foreach ($ this ->validator ->errors ()->messages () as $ key => $ messages ) {
109
- $ failures = $ this ->translator ->validationFailures ($ failed [$ key ] ?? []);
109
+ $ failures = $ this ->translator
110
+ ->validationFailures ($ failed [$ key ] ?? [])
111
+ ->all ();
110
112
111
113
foreach ($ messages as $ message ) {
112
114
yield $ this ->createError (
113
115
$ key ,
114
116
$ message ,
115
- $ failures-> shift ( ) ?: []
117
+ array_shift ( $ failures ) ?: [],
116
118
);
117
119
}
118
120
}
You can’t perform that action at this time.
0 commit comments