Skip to content

Commit

Permalink
Update Number.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Jan 12, 2024
1 parent 07aba27 commit 4fd30f8
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 @@ -266,9 +266,9 @@ public static function useLocale(string $locale)
protected static function ensureIntlExtensionIsInstalled()
{
if (! extension_loaded('intl')) {
$caller = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];
$method = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];

throw new RuntimeException('The "intl" PHP extension is required to use the method: '.$caller);
throw new RuntimeException('The "intl" PHP extension is required to use the ['.$method.'] method.');
}
}
}

0 comments on commit 4fd30f8

Please sign in to comment.