Cast $query['params'] to array to ensure it is a valid argument for the foreach.
This prevents errors if $query['params'] is null
This commit is contained in:
parent
870ab2d11e
commit
261325d33c
@ -88,7 +88,7 @@ class DoctrineDataCollector extends DataCollector
|
||||
private function sanitizeQueries($queries)
|
||||
{
|
||||
foreach ($queries as $i => $query) {
|
||||
foreach ($query['params'] as $j => $param) {
|
||||
foreach ((array)$query['params'] as $j => $param) {
|
||||
$queries[$i]['params'][$j] = $this->varToString($param);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user