From e057675915249b18565bec3d0c101f48a353dfe7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 30 Oct 2024 17:58:03 +1300 Subject: [PATCH] NEW Validate DBFields --- src/ORM/FieldType/DBPercentage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ORM/FieldType/DBPercentage.php b/src/ORM/FieldType/DBPercentage.php index b1e921f01f2..f6ea2941045 100644 --- a/src/ORM/FieldType/DBPercentage.php +++ b/src/ORM/FieldType/DBPercentage.php @@ -34,12 +34,12 @@ public function __construct(?string $name = null, int $precision = 4) parent::__construct($name, $precision + 1, $precision); } - public function getMinValue(): ?float + public function getMinValue(): float { return 0.0; } - public function getMaxValue(): ?float + public function getMaxValue(): float { return 1.0; }