Skip to content

Commit d8f50a5

Browse files
authored
Fix for brick being a enum
1 parent 91b86a6 commit d8f50a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Math/BrickMathCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ public function toInteger(Hexadecimal $value): IntegerObject
139139
*/
140140
private function getBrickRoundingMode(int $roundingMode): int
141141
{
142-
return self::ROUNDING_MODE_MAP[$roundingMode] ?? 0;
142+
return self::ROUNDING_MODE_MAP[$roundingMode] ?? BrickMathRounding::UNNECESSARY;
143143
}
144144
}

0 commit comments

Comments
 (0)