diff --git a/src/Translator/TranslatorAwareTrait.php b/src/Translator/TranslatorAwareTrait.php index c7e84521..f223e4a6 100644 --- a/src/Translator/TranslatorAwareTrait.php +++ b/src/Translator/TranslatorAwareTrait.php @@ -37,7 +37,7 @@ public function setTranslator(TranslatorInterface $translator = null, $textDomai { $this->translator = $translator; - if (!is_null($textDomain)) { + if (null !== $textDomain) { $this->setTranslatorTextDomain($textDomain); } @@ -61,7 +61,7 @@ public function getTranslator() */ public function hasTranslator() { - return !is_null($this->translator); + return (null !== $this->translator); } /**