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