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").
```

Related to adding hint type to the medthod in the commit
58fa12e#diff-53d4d12dd850e3a771f9af985f2fea723cbbaee3f0d3509da76ab67404a0c05b
  • Loading branch information
LDA committed Dec 26, 2024
1 parent 626ce78 commit ae79e0f
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 @@ -58,7 +58,7 @@ public function getName(): string
*/
public function getQueries(): array
{
return $this->data['queries'];
return iterator_to_array($this->data['queries'], false);
}

/**
Expand Down

0 comments on commit ae79e0f

Please sign in to comment.