From ae79e0f08b9e146ba9ebf0a3d591a26d4048431a Mon Sep 17 00:00:00 2001 From: LDA Date: Thu, 26 Dec 2024 21:18:25 +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"). ``` Related to adding hint type to the medthod in the commit https://github.com/SkyFoxvn/PropelBundle/commit/58fa12e924d8cd4ce18a712571b4c68de38d5521#diff-53d4d12dd850e3a771f9af985f2fea723cbbaee3f0d3509da76ab67404a0c05b --- DataCollector/PropelDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCollector/PropelDataCollector.php b/DataCollector/PropelDataCollector.php index 5196b0c9..5e385641 100644 --- a/DataCollector/PropelDataCollector.php +++ b/DataCollector/PropelDataCollector.php @@ -58,7 +58,7 @@ public function getName(): string */ public function getQueries(): array { - return $this->data['queries']; + return iterator_to_array($this->data['queries'], false); } /**