toString(); return new Connection( $params, (string) $username, (string) $password, $driverOptions ); } /** * {@inheritdoc} * * @deprecated */ public function getName() { Deprecation::trigger( 'doctrine/dbal', 'https://github.com/doctrine/dbal/issues/3580', 'Driver::getName() is deprecated' ); return 'ibm_db2'; } }