Skip to content

Commit

Permalink
add check for type
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaschen committed Jun 27, 2024
1 parent 5cb57bc commit 8f8dece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Response/CsvResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f8dece

Please sign in to comment.