Skip to content

Commit b66e289

Browse files
committed
Rewrite factory method to hopefully work in PHP 5.4
1 parent bb08628 commit b66e289

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Translations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public function mergeWith(Translations $translations, $options = Merge::DEFAULTS
492492
*/
493493
public function createNewTranslation($context, $original, $plural = '')
494494
{
495-
$factoryMethod = "{$this->translationClass}::create";
496-
return $factoryMethod($context, $original, $plural);
495+
$class = $this->translationClass;
496+
return $class::create($context, $original, $plural);
497497
}
498498
}

0 commit comments

Comments
 (0)