diff --git a/src/Schema/TypeFormats/NumberDouble.php b/src/Schema/TypeFormats/NumberDouble.php index 4d3fc386..a6a45c9c 100644 --- a/src/Schema/TypeFormats/NumberDouble.php +++ b/src/Schema/TypeFormats/NumberDouble.php @@ -14,7 +14,7 @@ class NumberDouble */ public function __invoke($value): bool { - // treat integers as valid floats + // @phpstan-ignore-next-line treat integers as valid floats return is_float($value + 0) || is_int($value + 0); } } diff --git a/src/Schema/TypeFormats/NumberFloat.php b/src/Schema/TypeFormats/NumberFloat.php index c788375d..3572cc33 100644 --- a/src/Schema/TypeFormats/NumberFloat.php +++ b/src/Schema/TypeFormats/NumberFloat.php @@ -14,7 +14,7 @@ class NumberFloat */ public function __invoke($value): bool { - // treat integers as valid floats + // @phpstan-ignore-next-line treat integers as valid floats return is_float($value + 0) || is_int($value + 0); } }