Skip to content

Commit bc7449c

Browse files
committed
Improve
1 parent cf24802 commit bc7449c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ActiveRecord.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,7 @@ private function populateRawValues(array|false $rawValues, array $oldValues = []
196196
$this->set($name, $value);
197197
}
198198

199-
if (empty($oldValues)) {
200-
$oldValues = $values;
201-
} else {
202-
$oldValues = array_merge($oldValues, $values);
203-
}
204-
205-
$this->assignOldValues($oldValues);
199+
$this->assignOldValues(array_merge($oldValues, $values));
206200

207201
return true;
208202
}

0 commit comments

Comments
 (0)