mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 08:45:15 +08:00
parent
429b8e1a32
commit
e52a5d8353
|
@ -37,7 +37,9 @@ class JsonApiFormatter implements HttpFormatter
|
|||
$document->setErrors([$data]);
|
||||
} else {
|
||||
$document->setErrors(array_map(
|
||||
function ($row) use ($data) { return array_merge($data, $row); },
|
||||
function ($row) use ($data) {
|
||||
return array_merge($data, $row);
|
||||
},
|
||||
$details
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user