From 43f66b2a58c5d323b1d344c8a04393a264671b86 Mon Sep 17 00:00:00 2001 From: Nick Sagona Date: Wed, 27 Nov 2024 14:07:52 -0600 Subject: [PATCH] Update Sql Data class --- src/Sql/Data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sql/Data.php b/src/Sql/Data.php index f5463f0..acd6ade 100644 --- a/src/Sql/Data.php +++ b/src/Sql/Data.php @@ -223,7 +223,7 @@ public function serialize(array $data, mixed $omit = null, bool $nullEmpty = fal // Force UPDATE SQL if (($this->forceUpdate) && !empty($this->conflictKey)) { - foreach ($data as $i => $row) { + foreach ($data as $row) { $primaryValue = $row[$this->conflictKey]; unset($row[$this->conflictKey]);