From daf9252cd33010a56231d57dc46d525900c7b311 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 4 Nov 2024 10:59:41 +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 f6ea2941045..b1e921f01f2 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; }