Skip to content

Commit

Permalink
fix: fix method originalIsEquivalent unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckbon3 committed Oct 11, 2020
1 parent 32f4791 commit 2a075a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/AbstractModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,13 @@ public function getCasts(): array
/**
* @inheritdoc
*/
public function originalIsEquivalent($key, $current)
public function originalIsEquivalent($key)
{
if (!array_key_exists($key, $this->original)) {
return false;
}

$current = $this->getAttribute($key);
$original = $this->getOriginal($key);

if ($current === $original) {
Expand Down

0 comments on commit 2a075a5

Please sign in to comment.