Skip to content

Commit 1b97d47

Browse files
committed
Standardized naming
1 parent 835a188 commit 1b97d47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/support/Translation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ class Translation
4545
/**
4646
* Instance.
4747
* @param string $plugin
48+
* @param array|null $config
4849
* @return Translator
4950
* @throws NotFoundException
5051
*/
51-
public static function instance(string $plugin = '', array|null $test_config=null): Translator
52+
public static function instance(string $plugin = '', ?array $config = null): Translator
5253
{
5354
if (!isset(static::$instance[$plugin])) {
54-
$config = $test_config ?: config($plugin ? "plugin.$plugin.translation" : 'translation', []);
55+
$config = $config ?? config($plugin ? "plugin.$plugin.translation" : 'translation', []);
5556
$paths = (array)($config['path'] ?? []);
5657

5758
static::$instance[$plugin] = $translator = new Translator($config['locale']);

0 commit comments

Comments
 (0)