diff --git a/src/I18n/ChainMessagesLoader.php b/src/I18n/ChainMessagesLoader.php index 92df24aa768..e3dbee8f625 100644 --- a/src/I18n/ChainMessagesLoader.php +++ b/src/I18n/ChainMessagesLoader.php @@ -17,8 +17,8 @@ use Aura\Intl\Package; /** - * Wraps multiple messages loaders calling them one after another until - * one of them returns an non-empty package + * Wraps multiple message loaders calling them one after another until + * one of them returns a non-empty package. * */ class ChainMessagesLoader { @@ -41,7 +41,7 @@ public function __construct(array $loaders) { } /** - * Executes this object for returning the translations package as configured in + * Executes this object returning the translations package as configured in * the chain. * * @return \Aura\Intl\Package @@ -57,7 +57,6 @@ public function __invoke() { } $package = $loader(); - if (!$package) { continue; } @@ -73,7 +72,6 @@ public function __invoke() { return $package; } } - return new Package; }