Skip to content

Commit 94af795

Browse files
committed
feat: Update brick/money version to ^0.10.0
The brick/money library needed to be updated to version ^0.10.0 to ensure compatibility with other dependencies and maintain functionality. This change addresses potential issues related to outdated dependencies. 🚀
1 parent 36559bb commit 94af795

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"php": "^8.1",
66
"vaened/support": "^4.0",
77
"lambdish/phunctional": "^2.1",
8-
"brick/money": "^0.8.0"
8+
"brick/money": "^0.10.0"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "^10.2",

src/Adjustments/Adjustment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Vaened\PriceEngine\Adjustments;
99

1010
use BackedEnum;
11+
use Brick\Math\RoundingMode;
1112
use ReflectionClass;
1213
use UnitEnum;
1314
use Vaened\PriceEngine\PriceEngineConfig;
@@ -66,7 +67,7 @@ public function value(): float|int
6667
return $this->value;
6768
}
6869

69-
protected function roundingMode(): int
70+
protected function roundingMode(): RoundingMode
7071
{
7172
return PriceEngineConfig::defaultRoundingMode();
7273
}

src/PriceEngineConfig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
final class PriceEngineConfig
1313
{
14-
private static int $roundingMode = RoundingMode::HALF_EVEN;
14+
private static RoundingMode $roundingMode = RoundingMode::HALF_EVEN;
1515

16-
public static function setDefaultRoundingMode(int $roundingMode): void
16+
public static function setDefaultRoundingMode(RoundingMode $roundingMode): void
1717
{
1818
self::$roundingMode = $roundingMode;
1919
}
2020

21-
public static function defaultRoundingMode(): int
21+
public static function defaultRoundingMode(): RoundingMode
2222
{
2323
return self::$roundingMode;
2424
}

0 commit comments

Comments
 (0)