Skip to content

Commit

Permalink
upgrade psalm to 5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Nov 17, 2023
1 parent a6394ea commit 0544b71
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Calculator/BcMathCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,6 @@ public static function mod(string $amount, string $divisor): string
throw InvalidArgumentException::moduloByZero();
}

return bcmod($amount, $divisor) ?? '0';
return bcmod($amount, $divisor);
}
}
2 changes: 0 additions & 2 deletions src/Currencies/CryptoCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,12 @@ private function getCurrencies(): array
* minorUnit: positive-int|0
* }>
*
* @psalm-suppress MoreSpecificReturnType do not specify all keys and values
*/
private function loadCurrencies(): array
{
$file = __DIR__ . '/../../resources/binance.php';

if (is_file($file)) {
/** @psalm-suppress LessSpecificReturnStatement */
return require $file;
}

Expand Down
2 changes: 0 additions & 2 deletions src/Currencies/ISOCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ private function getCurrencies(): array
* numericCode: positive-int
* }>
*
* @psalm-suppress MoreSpecificReturnType do not specify all keys and values
*/
private function loadCurrencies(): array
{
$file = __DIR__ . '/../../resources/currency.php';

if (is_file($file)) {
/** @psalm-suppress LessSpecificReturnStatement */
return require $file;
}

Expand Down
2 changes: 2 additions & 0 deletions tests/NumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public function itCreatesANumberFromAFloatingPointValue(): void
* }>
*
* @psalm-suppress InvalidOperand
* @psalm-suppress LessSpecificReturnStatement
* @psalm-suppress MoreSpecificReturnType
*
* the {@see PHP_INT_MAX} operations below cannot be inferred to numeric-string
* the {@see PHP_INT_MAX} operations below cannot be inferred to numeric-string
Expand Down

0 comments on commit 0544b71

Please sign in to comment.