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

Make SQLLogger implementations final

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