File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ' ]);
You can’t perform that action at this time.
0 commit comments