From bd46da6fdcc4b65a632dbe01c8f1c077af54dbd4 Mon Sep 17 00:00:00 2001 From: LDA Date: Fri, 6 Dec 2024 14:53:50 +0100 Subject: [PATCH] Fix propel datacollector 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"). ``` --- DataCollector/PropelDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCollector/PropelDataCollector.php b/DataCollector/PropelDataCollector.php index 5196b0c9..6b36207e 100644 --- a/DataCollector/PropelDataCollector.php +++ b/DataCollector/PropelDataCollector.php @@ -93,7 +93,7 @@ public function getTime() */ private function buildQueries(): array { - return $this->logger->getQueries(); + return iterator_to_array($this->data['queries'], false); } /**