mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-05 12:08:42 +00:00
Fix factory return type
This commit is contained in:
parent
0877aeb7d5
commit
d81ff1dc7a
|
|
@ -44,13 +44,13 @@ final class ConnectionFactory
|
||||||
*
|
*
|
||||||
* @param string[] $dbdata the basic database information for establishing a connection
|
* @param string[] $dbdata the basic database information for establishing a connection
|
||||||
*
|
*
|
||||||
* @return ConnectionInterface
|
* @return ConnectionAbstract
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException Throws this exception if the database is not supported.
|
* @throws \InvalidArgumentException Throws this exception if the database is not supported.
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function create(array $dbdata) : ConnectionInterface
|
public static function create(array $dbdata) : ConnectionAbstract
|
||||||
{
|
{
|
||||||
switch ($dbdata['db']) {
|
switch ($dbdata['db']) {
|
||||||
case DatabaseType::MYSQL:
|
case DatabaseType::MYSQL:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user