File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Expand file tree Collapse file tree 4 files changed +19
-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,11 @@ All notable changes to this project will be documented in this file. This projec
5
5
6
6
## Unreleased
7
7
8
+ ### Fixed
9
+
10
+ - [ laravel #287 ] ( https://github.com/laravel-json-api/laravel/issues/287 ) Use ` array_shift ` to avoid potential problem
11
+ introduced in Laravel.
12
+
8
13
## [ 4.1.0] - 2024-03-23
9
14
10
15
### Added
@@ -21,6 +26,13 @@ All notable changes to this project will be documented in this file. This projec
21
26
- ** BREAKING** Package now requires Laravel 11.
22
27
- Minimum PHP version is now ` 8.2 ` .
23
28
29
+ ## [ 3.0.1] - 2024-06-20
30
+
31
+ ### Fixed
32
+
33
+ - [ laravel #287 ] ( https://github.com/laravel-json-api/laravel/issues/287 ) Use ` array_shift ` to avoid potential problem
34
+ introduced in Laravel.
35
+
24
36
## [ 3.0.0] - 2023-02-14
25
37
26
38
### 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