diff --git a/src/PhpEnum.php b/src/PhpEnum.php index 11fefd3..277894a 100644 --- a/src/PhpEnum.php +++ b/src/PhpEnum.php @@ -156,7 +156,7 @@ public final function propertyEquals($property, $value, $strict = true) return false; } $scale = intval($this->scale()); - if ($scale > 0 || !extension_loaded('bcmath')) { + if ($scale <= 0 || !extension_loaded('bcmath')) { return strval($mixed) === strval($value); } return bccomp(strval($mixed), strval($value), $scale) === 0;