Normalize params only when used.

This commit is contained in:
Possum 2016-01-14 11:04:11 +01:00
parent bbbb0796f4
commit 6852a46423
1 changed files with 1 additions and 5 deletions

View File

@ -49,12 +49,8 @@ class DbalLogger implements SQLLogger
$this->stopwatch->start('doctrine', 'doctrine');
}
if (is_array($params)) {
$params = $this->normalizeParams($params);
}
if (null !== $this->logger) {
$this->log($sql, null === $params ? array() : $params);
$this->log($sql, null === $params ? array() : $this->normalizeParams($params));
}
}