Skip to content

Commit

Permalink
强类型改为注释类型,避免未安装对应扩展运行时报类型错误 (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft authored Nov 15, 2023
1 parent cb07e0e commit 8199a59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Components/pgsql/src/Db/Drivers/Swoole/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ public function close(): void
}

/**
* {@inheritDoc}
* @return PostgreSQL
*/
public function getInstance(): PostgreSQL
public function getInstance(): object
{
return $this->instance;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Components/pgsql/src/Db/Drivers/SwooleNew/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public function close(): void
}

/**
* {@inheritDoc}
* @return PostgreSQL
*/
public function getInstance(): PostgreSQL
public function getInstance(): object
{
return $this->instance;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Db/Drivers/TPdoDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public function close(): void
}

/**
* {@inheritDoc}
* @return \PDO
*/
public function getInstance(): \PDO
public function getInstance(): object
{
return $this->instance;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Db/Mysql/Drivers/Mysqli/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ public function close(): void
}

/**
* {@inheritDoc}
* @return \mysqli
*/
public function getInstance(): \mysqli
public function getInstance(): object
{
return $this->instance;
}
Expand Down

0 comments on commit 8199a59

Please sign in to comment.