Skip to content

Commit

Permalink
Normalize params only when used.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacePossum committed Jan 14, 2016
1 parent bbbb079 commit 6852a46
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php
Expand Up @@ -49,12 +49,8 @@ public function startQuery($sql, array $params = null, array $types = null)
$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));
}
}

Expand Down

0 comments on commit 6852a46

Please sign in to comment.