Skip to content

Commit

Permalink
Propel datacollector - return hint as Data for getQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
LDA committed Jan 22, 2025
1 parent ae79e0f commit ff63448
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DataCollector/PropelDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
use Symfony\Component\VarDumper\Caster\TraceStub;
use Symfony\Component\VarDumper\Cloner\Data;

/**
* The PropelDataCollector collector class collects information.
Expand Down Expand Up @@ -54,11 +55,11 @@ public function getName(): string
/**
* Returns queries.
*
* @return array<int, array{sql: string, connection: string, time: int|float, memory: int, trace: TraceStub}> Queries
* @return Data<int, array{sql: string, connection: string, time: int|float, memory: int, trace: TraceStub}> Queries
*/
public function getQueries(): array
public function getQueries(): Data
{
return iterator_to_array($this->data['queries'], false);
return $this->data['queries'];
}

/**
Expand Down

0 comments on commit ff63448

Please sign in to comment.