Skip to content

Commit 00c7899

Browse files
committed
wip
1 parent f8f0668 commit 00c7899

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Illuminate/Translation/Translator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public function has($key, $locale = null, $fallback = true)
117117
{
118118
$locale = $locale ?: $this->locale;
119119

120+
// We should temporarily disable the handling of missing translation keys
121+
// while perfroming the existence check. After the check, we will turn
122+
// the missing translation keys handling back to its original value.
120123
$handleMissingTranslationKeys = $this->handleMissingTranslationKeys;
121124

122125
$this->handleMissingTranslationKeys = false;

0 commit comments

Comments
 (0)