Skip to content

Commit

Permalink
Merge pull request #266 from MichaelHoste/patch-1
Browse files Browse the repository at this point in the history
PHP 8 compatibility (Gettext 4.x branch)
  • Loading branch information
oscarotero committed Mar 10, 2021
2 parents 57ff4fb + 21748c3 commit 3ab1651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/FunctionsScanner.php
Expand Up @@ -30,7 +30,7 @@ public function saveGettextFunctions($translations, array $options)
$translations = is_array($translations) ? $translations : [$translations];

/** @var Translations[] $translationByDomain [domain => translations, ..] */
$translationByDomain = array_reduce($translations, function (&$carry, Translations $translations) {
$translationByDomain = array_reduce($translations, function ($carry, Translations $translations) {
$carry[$translations->getDomain()] = $translations;
return $carry;
}, []);
Expand Down

0 comments on commit 3ab1651

Please sign in to comment.