Skip to content

Commit f273bd6

Browse files
committed
fixed psalm #88
1 parent e684359 commit f273bd6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Currency.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ public function __construct(string $currency)
235235
$this->thousandsSeparator = (string) $attributes['thousands_separator'];
236236
}
237237

238+
/**
239+
* @psalm-suppress MixedInferredReturnType,MixedReturnStatement
240+
*/
238241
public static function __callStatic(string $method, array $arguments): Currency
239242
{
240243
if (static::hasMacro($method)) {

src/Money.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ protected function convertAmount(int|float $amount, bool $convert = false): int|
283283
return $amount * $this->currency->getSubunit();
284284
}
285285

286+
/**
287+
* @psalm-suppress MixedInferredReturnType,MixedReturnStatement
288+
*/
286289
public static function __callStatic(string $method, array $arguments): Money
287290
{
288291
if (static::hasMacro($method)) {

0 commit comments

Comments
 (0)