diff --git a/src/Illuminate/Translation/Translator.php b/src/Illuminate/Translation/Translator.php index 3e489f521dfa..cb6e1e832942 100755 --- a/src/Illuminate/Translation/Translator.php +++ b/src/Illuminate/Translation/Translator.php @@ -303,11 +303,7 @@ public function parseKey($key) */ protected function parseLocale($locale) { - if (! is_null($locale)) { - return array_filter([$locale, $this->fallback]); - } - - return array_filter([$this->locale, $this->fallback]); + return array_filter([$locale ?: $this->locale, $this->fallback]); } /**