Skip to content

Commit 759694e

Browse files
committed
fixed psalm
1 parent 13f6b9f commit 759694e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Money.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
class Money implements Arrayable, Castable, Jsonable, JsonSerializable, Renderable
188188
{
189189
use Macroable;
190-
190+
191191
const ROUND_HALF_UP = PHP_ROUND_HALF_UP;
192192

193193
const ROUND_HALF_DOWN = PHP_ROUND_HALF_DOWN;
@@ -488,6 +488,9 @@ public function divide(int|float $divisor, int $roundingMode = self::ROUND_HALF_
488488
return $this;
489489
}
490490

491+
/**
492+
* @psalm-suppress ArgumentTypeCoercion
493+
*/
491494
public function round(int|float $amount, int $mode = self::ROUND_HALF_UP): float
492495
{
493496
$this->assertRoundingMode($mode);

0 commit comments

Comments
 (0)