Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simpler comparison to ''
  • Loading branch information
markstory committed Jul 16, 2017
1 parent 31033e9 commit 3091666
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/I18n/Translator.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3091666

Please sign in to comment.