@@ -17,11 +17,11 @@ |
||
17 | 17 | $data = parent::normalize($object, $format, $context); |
18 | 18 | $data = $data['errors']['children']; |
19 | 19 | |
20 | - $data = array_filter($data, function ($child) { |
|
20 | + $data = array_filter($data, function($child) { |
|
21 | 21 | return isset($child['errors']) && \count($child['errors']) > 0; |
22 | 22 | }); |
23 | 23 | |
24 | - $data = array_map(function ($child) { |
|
24 | + $data = array_map(function($child) { |
|
25 | 25 | return $child['errors'] ?? []; |
26 | 26 | }, $data); |
27 | 27 |