Skip to content

Commit

Permalink
Brevity fix per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoungportable committed Sep 6, 2023
1 parent 32dcf31 commit a7edaf8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Eloquent/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ public function zohoUpsert(string $toTable, array $data, array|string $key): int

foreach ($data as $rowIndex => $row) {
foreach ($row as $field => $value) {
if (is_object($value) && method_exists($value, '__toString')) {
$row[$field] = $value->__toString();
}
$row[$field] = $value instanceof \Stringable ? (string) $value : $value;
}
$data[$rowIndex] = $row;
}
Expand Down

0 comments on commit a7edaf8

Please sign in to comment.