Allows custom Currency Provider through inheritance #94
Annotations
7 errors
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm
Process completed with exit code 2.
|
Loading