From 00c78997c88fedde8b45a65f0c9ccb9395bc2d0f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 24 Sep 2024 08:47:30 -0500 Subject: [PATCH] wip --- src/Illuminate/Translation/Translator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Illuminate/Translation/Translator.php b/src/Illuminate/Translation/Translator.php index b7001838d3ce..5f9b1e299896 100755 --- a/src/Illuminate/Translation/Translator.php +++ b/src/Illuminate/Translation/Translator.php @@ -117,6 +117,9 @@ public function has($key, $locale = null, $fallback = true) { $locale = $locale ?: $this->locale; + // We should temporarily disable the handling of missing translation keys + // while perfroming the existence check. After the check, we will turn + // the missing translation keys handling back to its original value. $handleMissingTranslationKeys = $this->handleMissingTranslationKeys; $this->handleMissingTranslationKeys = false;