diff --git a/src/Illuminate/Support/Number.php b/src/Illuminate/Support/Number.php index cfe8921fc8ef..801b9a2730cb 100644 --- a/src/Illuminate/Support/Number.php +++ b/src/Illuminate/Support/Number.php @@ -300,11 +300,11 @@ public static function withLocale(string $locale, callable $callback) */ public static function withCurrency(string $currency, callable $callback) { - $previousLCurrency = static::$currency; + $previousCurrency = static::$currency; static::useCurrency($currency); - return tap($callback(), fn () => static::useCurrency($previousLCurrency)); + return tap($callback(), fn () => static::useCurrency($previousCurrency)); } /**