Skip to content

Commit 19f38dd

Browse files
authored
fix typo $previousLCurrency to $previousCurrency for clarity and consistency (#53261)
1 parent d61d4f2 commit 19f38dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Support/Number.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ public static function withLocale(string $locale, callable $callback)
300300
*/
301301
public static function withCurrency(string $currency, callable $callback)
302302
{
303-
$previousLCurrency = static::$currency;
303+
$previousCurrency = static::$currency;
304304

305305
static::useCurrency($currency);
306306

307-
return tap($callback(), fn () => static::useCurrency($previousLCurrency));
307+
return tap($callback(), fn () => static::useCurrency($previousCurrency));
308308
}
309309

310310
/**

0 commit comments

Comments
 (0)