Skip to content

Commit d85104a

Browse files
refactor: Adapt the code for PHP 7.1
1 parent 3bc26d7 commit d85104a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TranslationDriver/SymfonyTranslationDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SymfonyTranslationDriver implements TranslationDriverInterface
2121

2222
public function __construct(?string $cacheDirectory = null)
2323
{
24-
$this->translator = new Translator($this->locale, cacheDir: $cacheDirectory);
24+
$this->translator = new Translator($this->locale, null, $cacheDirectory);
2525
$this->translator->addLoader('mo', new MoFileLoader());
2626
}
2727

0 commit comments

Comments
 (0)