Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'cs/zendframework/zendframework#7014-empty-return-instea…
Browse files Browse the repository at this point in the history
…d-of-null-return' into develop

Close zendframework/zendframework#7014
  • Loading branch information
Ocramius committed Dec 16, 2014
3 parents 8ec7123 + 92967e1 + 90cdcd4 commit bf0e539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Translator/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function ($r) {
}
}

return null;
return;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/View/Helper/AbstractTranslatorHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function setTranslator(Translator $translator = null, $textDomain = null)
public function getTranslator()
{
if (! $this->isTranslatorEnabled()) {
return null;
return;
}

return $this->translator;
Expand Down

0 comments on commit bf0e539

Please sign in to comment.