diff --git a/src/I18n/Translator.php b/src/I18n/Translator.php index b36b1047449..2d890edfe18 100644 --- a/src/I18n/Translator.php +++ b/src/I18n/Translator.php @@ -182,9 +182,7 @@ protected function resolveContext($key, $message, array $vars) if (!isset($message['_context'][$context])) { return $key; } - if (is_string($message['_context'][$context]) && - strlen($message['_context'][$context]) === 0 - ) { + if ($message['_context'][$context] === '') { return $key; }