Skip to content

Commit 7aec814

Browse files
refactor: respect parameters order to preserve BC
1 parent 4c18139 commit 7aec814

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
@@ -23,7 +23,7 @@ class SymfonyTranslationDriver implements TranslationDriverInterface
2323
/**
2424
* @param string|null $cacheDirectory useful only if the given $translator is null.
2525
*/
26-
public function __construct(?TranslatorInterface $translator = null, ?string $cacheDirectory = null)
26+
public function __construct(?string $cacheDirectory = null, ?TranslatorInterface $translator = null)
2727
{
2828
$this->translator = $translator ?: new Translator($this->locale, null, $cacheDirectory);
2929
$this->translator->addLoader('mo', new MoFileLoader());

0 commit comments

Comments
 (0)