Skip to content

Commit

Permalink
Patch replicate method for empty field
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Feb 23, 2024
1 parent 81eb2e9 commit 5331394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ public function replicate(array $replace = []): static

if (!empty($replace)) {
foreach ($replace as $key => $value) {
if (isset($fields[$key])) {
if (array_key_exists($key, $fields)) {
$fields[$key] = $value;
}
}
Expand Down

0 comments on commit 5331394

Please sign in to comment.