mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +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
|
||||
*
|
||||
* @return ConnectionInterface
|
||||
* @return ConnectionAbstract
|
||||
*
|
||||
* @throws \InvalidArgumentException Throws this exception if the database is not supported.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function create(array $dbdata) : ConnectionInterface
|
||||
public static function create(array $dbdata) : ConnectionAbstract
|
||||
{
|
||||
switch ($dbdata['db']) {
|
||||
case DatabaseType::MYSQL:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user