From 4fd30f8bda974153cb87f00c3bef03f9967fa1b4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 12 Jan 2024 08:08:01 -0600 Subject: [PATCH] Update Number.php --- 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 c848ed5e33f1..b6f06178a1e4 100644 --- a/src/Illuminate/Support/Number.php +++ b/src/Illuminate/Support/Number.php @@ -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.'); } } }