Unverified Commit b130d983 authored by Benjamin Morel's avatar Benjamin Morel Committed by Sergei Morozov

Make SQLLogger implementations final

parent 32c473cb
...@@ -12,6 +12,7 @@ The Doctrine\DBAL\Version class is no longer available: please refrain from chec ...@@ -12,6 +12,7 @@ The Doctrine\DBAL\Version class is no longer available: please refrain from chec
## BC BREAK: the SQLLogger interface has changed ## BC BREAK: the SQLLogger interface has changed
The methods are the same but use scalar type hints, return types, and non-nullable arrays. The methods are the same but use scalar type hints, return types, and non-nullable arrays.
SQLLogger implementations are now final.
Before: Before:
......
...@@ -7,7 +7,7 @@ use function microtime; ...@@ -7,7 +7,7 @@ use function microtime;
/** /**
* Includes executed SQLs in a Debug Stack. * Includes executed SQLs in a Debug Stack.
*/ */
class DebugStack implements SQLLogger final class DebugStack implements SQLLogger
{ {
/** /**
* Executed SQL queries. * Executed SQL queries.
......
...@@ -8,7 +8,7 @@ use function var_dump; ...@@ -8,7 +8,7 @@ use function var_dump;
/** /**
* A SQL logger that logs to the standard output using echo/var_dump. * A SQL logger that logs to the standard output using echo/var_dump.
*/ */
class EchoSQLLogger implements SQLLogger final class EchoSQLLogger implements SQLLogger
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -5,7 +5,7 @@ namespace Doctrine\DBAL\Logging; ...@@ -5,7 +5,7 @@ namespace Doctrine\DBAL\Logging;
/** /**
* Chains multiple SQLLogger. * Chains multiple SQLLogger.
*/ */
class LoggerChain implements SQLLogger final class LoggerChain implements SQLLogger
{ {
/** @var SQLLogger[] */ /** @var SQLLogger[] */
private $loggers = []; private $loggers = [];
......
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