Skip to content

Commit

Permalink
Fix float value comparison 0 != 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 16, 2016
1 parent 9805f3b commit c1a1a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/Comparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function compare(SchemaInterface $before, SchemaInterface $after)

if (($aval instanceof Raw && $bval instanceof Raw && $aval->compare($bval) != 0)) {
$d->appendDetail(new AttributeDiff($n , $aval, $bval));
} else if (is_scalar($aval) && is_scalar($bval) && $aval !== $bval) {
} else if (is_scalar($aval) && is_scalar($bval) && $aval != $bval) {
$d->appendDetail(new AttributeDiff($n , $aval, $bval));
}
}
Expand Down

0 comments on commit c1a1a31

Please sign in to comment.