From 3091666e059db4ce9652b22aa2cb8a142de51dda Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 16 Jul 2017 13:35:53 -0400 Subject: [PATCH] Simpler comparison to '' --- src/I18n/Translator.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }