diff --git a/src/Response/CsvResponse.php b/src/Response/CsvResponse.php index d47f11b..65066e1 100644 --- a/src/Response/CsvResponse.php +++ b/src/Response/CsvResponse.php @@ -46,6 +46,9 @@ public function __construct(protected Parser $parser, protected string $response public function isError(): bool { foreach ($this->data as $data) { + if (!is_array($data)) { + continue; + } if (!$this->isErrorLine($data)) { continue; }