Skip to content

Commit

Permalink
Account for empty http data for gettign reference
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Apr 8, 2023
1 parent ec32fed commit da5e543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function getFormReference(string $field, Form $form): mixed
return $this->getReference($data);
}

return Arrays::walk($data, fn($id) => yield $id => $this->getReference($id));
return Arrays::walk($data ?? [], fn($id) => yield $id => $this->getReference($id));
}


Expand Down

0 comments on commit da5e543

Please sign in to comment.