Mark Driver implementations final

parent 17e6eaed
# Upgrade to 3.0
## BC BREAK: Changes in PDO driver classes
## BC BREAK: Changes in driver classes
1. The `PDO\Connection` and `PDO\Statement` classes have been made final.
2. The `PDOSqlsrv\Connection` and `PDOSqlsrv\Statement` classes have been made final and no longer extend the corresponding PDO classes.
1. All implementations of the `Driver` interface have been made final.
2. The `PDO\Connection` and `PDO\Statement` classes have been made final.
3. The `PDOSqlsrv\Connection` and `PDOSqlsrv\Statement` classes have been made final and no longer extend the corresponding PDO classes.
## BC BREAK: Changes in driver-level exception handling
......
......@@ -10,7 +10,7 @@ use Doctrine\DBAL\Driver\Mysqli\Initializer\Secure;
use function count;
class Driver extends AbstractMySQLDriver
final class Driver extends AbstractMySQLDriver
{
/**
* {@inheritdoc}
......
......@@ -9,7 +9,7 @@ use const OCI_NO_AUTO_COMMIT;
/**
* A Doctrine DBAL driver for the Oracle OCI8 PHP extensions.
*/
class Driver extends AbstractOracleDriver
final class Driver extends AbstractOracleDriver
{
/**
* {@inheritdoc}
......
......@@ -9,7 +9,7 @@ use PDO;
/**
* PDO MySql driver.
*/
class Driver extends AbstractMySQLDriver
final class Driver extends AbstractMySQLDriver
{
/**
* {@inheritdoc}
......
......@@ -14,7 +14,7 @@ use PDO;
* which leads us to the recommendation to use the "oci8" driver to connect
* to Oracle instead.
*/
class Driver extends AbstractOracleDriver
final class Driver extends AbstractOracleDriver
{
/**
* {@inheritdoc}
......
......@@ -11,7 +11,7 @@ use function defined;
/**
* Driver that connects through pdo_pgsql.
*/
class Driver extends AbstractPostgreSQLDriver
final class Driver extends AbstractPostgreSQLDriver
{
/**
* {@inheritdoc}
......
......@@ -11,7 +11,7 @@ use function array_merge;
/**
* The PDO Sqlite driver.
*/
class Driver extends AbstractSQLiteDriver
final class Driver extends AbstractSQLiteDriver
{
/** @var mixed[] */
protected $_userDefinedFunctions = [
......
......@@ -14,7 +14,7 @@ use function sprintf;
/**
* The PDO-based Sqlsrv driver.
*/
class Driver extends AbstractSQLServerDriver
final class Driver extends AbstractSQLServerDriver
{
/**
* {@inheritdoc}
......
......@@ -8,7 +8,7 @@ use Doctrine\DBAL\Driver\AbstractSQLServerDriver\Exception\PortWithoutHost;
/**
* Driver for ext/sqlsrv.
*/
class Driver extends AbstractSQLServerDriver
final class Driver extends AbstractSQLServerDriver
{
/**
* {@inheritdoc}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment