We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ec9f0c + abc8569 commit af4a258Copy full SHA for af4a258
1 file changed
src/DbManager.php
@@ -34,7 +34,7 @@ class DbManager extends \think\DbManager
34
* @return ConnectionInterface
35
* @throws Throwable
36
*/
37
- protected function instance(?string $name = null, bool $force = false): ConnectionInterface
+ protected function instance(array|string|null $name = null, bool $force = false): ConnectionInterface
38
{
39
if (empty($name)) {
40
$name = $this->getConfig('default', 'mysql');
0 commit comments