Skip to content

Commit 69e1fe1

Browse files
committed
Allow PHP 7.2
1 parent bf32631 commit 69e1fe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Gedmo/Tool/Logging/DBAL/QueryAnalyzer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@ public function getExecutionTimes()
180180
/**
181181
* Create the SQL with mapped parameters
182182
*
183-
* @param string $sql
184-
* @param array $params
185-
* @param array $types
183+
* @param string $sql
184+
* @param null|array $params
185+
* @param null|array $types
186186
*
187187
* @return string
188188
*/
189189
private function generateSql($sql, $params, $types)
190190
{
191-
if (!count($params)) {
191+
if (null === $params || !count($params)) {
192192
return $sql;
193193
}
194194
$converted = $this->getConvertedParams($params, $types);

0 commit comments

Comments
 (0)