/*
* This conversion is only required whilst currency can be either a string or a
* Currency object.
*/
$currency = $forceCurrency;
if (!$currency instanceof Currency) {
@trigger_error('Passing a currency as string is deprecated since 3.1 and will be removed in 4.0. Please pass a '.Currency::class.' instance instead.', E_USER_DEPRECATED);
$currency = new Currency($currency);
}
Use of string currencies is deprecated and triggers an E_DEPRECATED error. https://github.com/moneyphp/money/commit/0e33bf8d26796bf3d60d595172aaef6deae80ecc
src/Parser/DecimalMoneyParser.php#L49