Skip to content

Commit

Permalink
Make SQLLogger implementations final
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored and morozov committed Nov 2, 2019
1 parent 79dbe70 commit c2a8326
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Logging/DebugStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Includes executed SQLs in a Debug Stack.
*/
class DebugStack implements SQLLogger
final class DebugStack implements SQLLogger
{
/**
* Executed SQL queries.
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Logging/EchoSQLLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* A SQL logger that logs to the standard output using echo/var_dump.
*/
class EchoSQLLogger implements SQLLogger
final class EchoSQLLogger implements SQLLogger
{
/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Logging/LoggerChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Chains multiple SQLLogger.
*/
class LoggerChain implements SQLLogger
final class LoggerChain implements SQLLogger
{
/** @var SQLLogger[] */
private $loggers = [];
Expand Down

0 comments on commit c2a8326

Please sign in to comment.