Skip to content

Commit af4a258

Browse files
authored
Merge pull request #17 from JaguarJack/main
fix: 修复 DbManager::instance 类型错误
2 parents 9ec9f0c + abc8569 commit af4a258

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DbManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DbManager extends \think\DbManager
3434
* @return ConnectionInterface
3535
* @throws Throwable
3636
*/
37-
protected function instance(?string $name = null, bool $force = false): ConnectionInterface
37+
protected function instance(array|string|null $name = null, bool $force = false): ConnectionInterface
3838
{
3939
if (empty($name)) {
4040
$name = $this->getConfig('default', 'mysql');

0 commit comments

Comments
 (0)