Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 20, 2024
1 parent 34ba5fd commit 0d2b160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ public function setAttributes(array $values): void
*/
public function setIsNewRecord(bool $value): void
{
$this->oldAttributes = $value ? null : $this->getAttributes();
$this->oldAttributes = $value ? null : get_object_vars($this);

Check warning on line 628 in src/BaseActiveRecord.php

View check run for this annotation

Codecov / codecov/patch

src/BaseActiveRecord.php#L628

Added line #L628 was not covered by tests
}

/**
Expand Down

0 comments on commit 0d2b160

Please sign in to comment.