Fix factory return type

This commit is contained in:
Dennis Eichhorn 2018-07-27 20:05:18 +02:00
parent 0877aeb7d5
commit d81ff1dc7a

View File

@ -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: