Mark Driver implementations final

parent 17e6eaed
# Upgrade to 3.0 # 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. 1. All implementations of the `Driver` interface have been made final.
2. The `PDOSqlsrv\Connection` and `PDOSqlsrv\Statement` classes have been made final and no longer extend the corresponding PDO classes. 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 ## BC BREAK: Changes in driver-level exception handling
......
...@@ -10,7 +10,7 @@ use Doctrine\DBAL\Driver\Mysqli\Initializer\Secure; ...@@ -10,7 +10,7 @@ use Doctrine\DBAL\Driver\Mysqli\Initializer\Secure;
use function count; use function count;
class Driver extends AbstractMySQLDriver final class Driver extends AbstractMySQLDriver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -9,7 +9,7 @@ use const OCI_NO_AUTO_COMMIT; ...@@ -9,7 +9,7 @@ use const OCI_NO_AUTO_COMMIT;
/** /**
* A Doctrine DBAL driver for the Oracle OCI8 PHP extensions. * A Doctrine DBAL driver for the Oracle OCI8 PHP extensions.
*/ */
class Driver extends AbstractOracleDriver final class Driver extends AbstractOracleDriver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -9,7 +9,7 @@ use PDO; ...@@ -9,7 +9,7 @@ use PDO;
/** /**
* PDO MySql driver. * PDO MySql driver.
*/ */
class Driver extends AbstractMySQLDriver final class Driver extends AbstractMySQLDriver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -14,7 +14,7 @@ use PDO; ...@@ -14,7 +14,7 @@ use PDO;
* which leads us to the recommendation to use the "oci8" driver to connect * which leads us to the recommendation to use the "oci8" driver to connect
* to Oracle instead. * to Oracle instead.
*/ */
class Driver extends AbstractOracleDriver final class Driver extends AbstractOracleDriver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -11,7 +11,7 @@ use function defined; ...@@ -11,7 +11,7 @@ use function defined;
/** /**
* Driver that connects through pdo_pgsql. * Driver that connects through pdo_pgsql.
*/ */
class Driver extends AbstractPostgreSQLDriver final class Driver extends AbstractPostgreSQLDriver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -11,7 +11,7 @@ use function array_merge; ...@@ -11,7 +11,7 @@ use function array_merge;
/** /**
* The PDO Sqlite driver. * The PDO Sqlite driver.
*/ */
class Driver extends AbstractSQLiteDriver final class Driver extends AbstractSQLiteDriver
{ {
/** @var mixed[] */ /** @var mixed[] */
protected $_userDefinedFunctions = [ protected $_userDefinedFunctions = [
......
...@@ -14,7 +14,7 @@ use function sprintf; ...@@ -14,7 +14,7 @@ use function sprintf;
/** /**
* The PDO-based Sqlsrv driver. * The PDO-based Sqlsrv driver.
*/ */
class Driver extends AbstractSQLServerDriver final class Driver extends AbstractSQLServerDriver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -8,7 +8,7 @@ use Doctrine\DBAL\Driver\AbstractSQLServerDriver\Exception\PortWithoutHost; ...@@ -8,7 +8,7 @@ use Doctrine\DBAL\Driver\AbstractSQLServerDriver\Exception\PortWithoutHost;
/** /**
* Driver for ext/sqlsrv. * Driver for ext/sqlsrv.
*/ */
class Driver extends AbstractSQLServerDriver final class Driver extends AbstractSQLServerDriver
{ {
/** /**
* {@inheritdoc} * {@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