From 0454287a9e952f34a3868445118aa856e2eecb8e Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Thu, 31 Oct 2024 18:51:52 +0100 Subject: [PATCH] Fix object creation with correct precision type (#78) Previously, the method incorrectly created an object with double precision instead of single precision. This commit corrects the precision type to ensure single-precision float objects are created as intended. --- src/OtherObject/SinglePrecisionFloatObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OtherObject/SinglePrecisionFloatObject.php b/src/OtherObject/SinglePrecisionFloatObject.php index a5a44fb..cc3d622 100644 --- a/src/OtherObject/SinglePrecisionFloatObject.php +++ b/src/OtherObject/SinglePrecisionFloatObject.php @@ -30,7 +30,7 @@ public static function createFromFloat(float $number): self ))(), }; - return new self(self::OBJECT_DOUBLE_PRECISION_FLOAT, $value); + return new self(self::OBJECT_SINGLE_PRECISION_FLOAT, $value); } public static function createFromLoadedData(int $additionalInformation, ?string $data): Base