Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 24, 2024
1 parent f8f0668 commit 00c7899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Illuminate/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00c7899

Please sign in to comment.