From 297ebc6248a228882b30b5877747b1cba03c18d5 Mon Sep 17 00:00:00 2001 From: arif Date: Tue, 22 Oct 2024 02:28:34 +0600 Subject: [PATCH] fix typo $previousLCurrency to $previousCurrency for clarity and consistency --- src/Illuminate/Support/Number.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } /**