Fix undefined index error; closes #2378; closes #2391

This commit is contained in:
Dane Everitt 2020-09-22 19:58:30 -07:00
parent d4363cb36f
commit 1b0a6252f1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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;
} }