Skip to content

Allows custom Currency Provider through inheritance #172

Allows custom Currency Provider through inheritance

Allows custom Currency Provider through inheritance #172

Triggered via pull request October 13, 2024 12:36
Status Failure
Total duration 33s
Artifacts

ci.yml

on: pull_request
Matrix: PHPUnit
Fit to window
Zoom out
Zoom in

Annotations

7 errors
PossiblyInvalidArgument: src/Currency.php#L88
src/Currency.php:88:59: PossiblyInvalidArgument: Argument 1 of Brick\Money\CurrencyProviderInterface::getCurrency expects string, but possibly different type int|string provided (see https://psalm.dev/092)
ParamNameMismatch: src/ISOCurrencyProvider.php#L150
src/ISOCurrencyProvider.php:150:50: ParamNameMismatch: Argument 1 of Brick\Money\ISOCurrencyProvider::getCurrencyForCountry has wrong name $countryCode, expecting $currencyCode as defined by Brick\Money\CurrencyProviderInterface::getCurrencyForCountry (see https://psalm.dev/230)
PossiblyInvalidArgument: src/Money.php#L184
src/Money.php:184:68: PossiblyInvalidArgument: Argument 1 of Brick\Money\CurrencyProviderInterface::getCurrency expects string, but possibly different type int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Money.php#L227
src/Money.php:227:68: PossiblyInvalidArgument: Argument 1 of Brick\Money\CurrencyProviderInterface::getCurrency expects string, but possibly different type int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Money.php#L253
src/Money.php:253:68: PossiblyInvalidArgument: Argument 1 of Brick\Money\CurrencyProviderInterface::getCurrency expects string, but possibly different type int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Money.php#L737
src/Money.php:737:68: PossiblyInvalidArgument: Argument 1 of Brick\Money\CurrencyProviderInterface::getCurrency expects string, but possibly different type int|string provided (see https://psalm.dev/092)
Psalm
Process completed with exit code 2.