updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -12,7 +12,7 @@ class DebugStack implements SQLLogger
/**
* Executed SQL queries.
*
* @var mixed[][]
* @var array<int, array<string, mixed>>
*/
public $queries = [];
@@ -38,8 +38,14 @@ class DebugStack implements SQLLogger
return;
}
$this->start = microtime(true);
$this->queries[++$this->currentQuery] = ['sql' => $sql, 'params' => $params, 'types' => $types, 'executionMS' => 0];
$this->start = microtime(true);
$this->queries[++$this->currentQuery] = [
'sql' => $sql,
'params' => $params,
'types' => $types,
'executionMS' => 0,
];
}
/**

View File

@@ -2,14 +2,28 @@
namespace Doctrine\DBAL\Logging;
use const PHP_EOL;
use Doctrine\Deprecations\Deprecation;
use function var_dump;
use const PHP_EOL;
/**
* A SQL logger that logs to the standard output using echo/var_dump.
*
* @deprecated
*/
class EchoSQLLogger implements SQLLogger
{
public function __construct()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/3935',
'EchoSQLLogger is deprecated without replacement, move the code into your project if you rely on it.'
);
}
/**
* {@inheritdoc}
*/

View File

@@ -2,6 +2,8 @@
namespace Doctrine\DBAL\Logging;
use Doctrine\Deprecations\Deprecation;
/**
* Chains multiple SQLLogger.
*/
@@ -10,13 +12,29 @@ class LoggerChain implements SQLLogger
/** @var SQLLogger[] */
private $loggers = [];
/**
* @param SQLLogger[] $loggers
*/
public function __construct(array $loggers = [])
{
$this->loggers = $loggers;
}
/**
* Adds a logger in the chain.
*
* @deprecated Inject list of loggers via constructor instead
*
* @return void
*/
public function addLogger(SQLLogger $logger)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/3572',
'LoggerChain::addLogger() is deprecated, use LoggerChain constructor instead.'
);
$this->loggers[] = $logger;
}

View File

@@ -2,6 +2,8 @@
namespace Doctrine\DBAL\Logging;
use Doctrine\DBAL\Types\Type;
/**
* Interface for SQL loggers.
*/
@@ -10,9 +12,9 @@ interface SQLLogger
/**
* Logs a SQL statement somewhere.
*
* @param string $sql The SQL to be executed.
* @param mixed[]|null $params The SQL parameters.
* @param int[]|string[]|null $types The SQL parameter types.
* @param string $sql SQL statement
* @param array<int, mixed>|array<string, mixed>|null $params Statement parameters
* @param array<int, Type|int|string|null>|array<string, Type|int|string|null>|null $types Parameter types
*
* @return void
*/