Skip to content

Commit

Permalink
fixed psalm #88
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jul 27, 2023
1 parent e684359 commit f273bd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ public function __construct(string $currency)
$this->thousandsSeparator = (string) $attributes['thousands_separator'];
}

/**
* @psalm-suppress MixedInferredReturnType,MixedReturnStatement
*/
public static function __callStatic(string $method, array $arguments): Currency
{
if (static::hasMacro($method)) {
Expand Down
3 changes: 3 additions & 0 deletions src/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ protected function convertAmount(int|float $amount, bool $convert = false): int|
return $amount * $this->currency->getSubunit();
}

/**
* @psalm-suppress MixedInferredReturnType,MixedReturnStatement
*/
public static function __callStatic(string $method, array $arguments): Money
{
if (static::hasMacro($method)) {
Expand Down

0 comments on commit f273bd6

Please sign in to comment.