diff --git a/src/Exceptions/Error.php b/src/Exceptions/Error.php index d80738c..fe492cb 100644 --- a/src/Exceptions/Error.php +++ b/src/Exceptions/Error.php @@ -88,6 +88,9 @@ public static function parseErrors($json_string) $errors = []; if (!empty($error_obj->errors)) { foreach ($error_obj->errors as $error) { + if (!isset($error->path)) { + $error->path = ''; + } $errors[] = new self($error->code, $error->path, $error->description); } } elseif (!empty($error_obj->error)) {