Skip to content

Commit

Permalink
Fix propel datacollector
Browse files Browse the repository at this point in the history
Fix error in profiler on the Propel panel

```
An exception has been thrown during the rendering of a template ("Propel\Bundle\PropelBundle\DataCollector\PropelDataCollector::getQueries(): Return value must be of type array, Symfony\Component\VarDumper\Cloner\Data returned").
```
  • Loading branch information
LDA committed Dec 6, 2024
1 parent be7b4ab commit bd46da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataCollector/PropelDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getTime()
*/
private function buildQueries(): array
{
return $this->logger->getQueries();
return iterator_to_array($this->data['queries'], false);
}

/**
Expand Down

0 comments on commit bd46da6

Please sign in to comment.