Skip to content
Permalink
Browse files

comply with php <7

  • Loading branch information...
andrej-griniuk committed Aug 13, 2016
1 parent ddabfa7 commit de8a33c27e4e29643beba773d10cf1a92bd65d62
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/I18n/TranslatorRegistry.php
@@ -203,8 +203,8 @@ public function useFallback($enable = true)
*/
protected function _fallbackLoader($name, $locale)
{
if ($this->_customFallbackLoader) {
return ($this->_customFallbackLoader)($name, $locale);
if ($loader = $this->_customFallbackLoader) {
return $loader($name, $locale);
}
$chain = new ChainMessagesLoader([

0 comments on commit de8a33c

Please sign in to comment.
You can’t perform that action at this time.