Skip to content

Commit

Permalink
fix typo $previousLCurrency to $previousCurrency for clarity and cons…
Browse files Browse the repository at this point in the history
…istency (#53261)
  • Loading branch information
mdariftiens authored Oct 22, 2024
1 parent d61d4f2 commit 19f38dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 19f38dd

Please sign in to comment.