parent
d4363cb36f
commit
1b0a6252f1
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ class Handler extends ExceptionHandler
|
||||||
|
|
||||||
$converted = self::convertToArray($exception)['errors'][0];
|
$converted = self::convertToArray($exception)['errors'][0];
|
||||||
$converted['detail'] = $error;
|
$converted['detail'] = $error;
|
||||||
$converted['meta'] = is_array($converted['meta']) ? array_merge($converted['meta'], $meta) : $meta;
|
$converted['meta'] = is_array($converted['meta'] ?? null) ? array_merge($converted['meta'], $meta) : $meta;
|
||||||
|
|
||||||
$response[] = $converted;
|
$response[] = $converted;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue