Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit 9db3b86

Browse files
committed
Hotfix: merge options in the BaseTest class
1 parent 8fab9b2 commit 9db3b86

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tests/Database/BaseTest.php

+7-9
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ public function getDriver(array $options = []): Driver
6161
if (!isset($this->driver)) {
6262
$class = $config['driver'];
6363

64-
$this->driver = new $class(
65-
[
66-
'connection' => $config['conn'],
67-
'username' => $config['user'] ?? '',
68-
'password' => $config['pass'] ?? '',
69-
'options' => [],
70-
'queryCache' => true
71-
]
72-
);
64+
$this->driver = new $class(\array_merge($options, [
65+
'connection' => $config['conn'],
66+
'username' => $config['user'] ?? '',
67+
'password' => $config['pass'] ?? '',
68+
'options' => [],
69+
'queryCache' => true
70+
]));
7371
}
7472

7573
static::$logger = static::$logger ?? new TestLogger();

0 commit comments

Comments
 (0)