Skip to content

Commit

Permalink
Float handling should also be for reals and doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jun 19, 2020
1 parent 4b83ad8 commit d68d915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ public function originalIsEquivalent($key, $current)
} elseif ($this->hasCast($key, ['object', 'collection'])) {
return $this->castAttribute($key, $current) ==
$this->castAttribute($key, $original);
} elseif ($this->hasCast($key, 'float')) {
} elseif ($this->hasCast($key, ['real', 'float', 'double'])) {
return bccomp(
$this->castAttribute($key, $current),
$this->castAttribute($key, $original)
Expand Down

0 comments on commit d68d915

Please sign in to comment.