Skip to content

Commit

Permalink
Updating I18n::setTranslator() signature and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Apr 24, 2017
1 parent e33559b commit e7b94db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/I18n/I18n.php
Expand Up @@ -166,12 +166,12 @@ public static function translator($name = 'default', $locale = null, callable $l
* ```
*
* @param string $name The domain of the translation messages.
* @param string|null $locale The locale for the translator.
* @param callable|null $loader A callback function or callable class responsible for
* constructing a translations package instance.
* @param string|null $locale The locale for the translator.
* @return void
*/
public static function setTranslator($name = 'default', $locale = null, callable $loader)
public static function setTranslator($name, callable $loader, $locale = null)
{
$locale = $locale ?: static::getLocale();

Expand Down

0 comments on commit e7b94db

Please sign in to comment.