mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 11:42:18 +08:00
parent
47a528305b
commit
51f4bcdcb0
@ -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…
x
Reference in New Issue
Block a user