Skip to content

Commit

Permalink
Fix wrong floatMS type in DoctrineDataCollector
Browse files Browse the repository at this point in the history
Fixes a deprecation warning on PHP 8.1

closes #1446
  • Loading branch information
ostrolucky committed Dec 11, 2021
1 parent 45d4f6a commit fdcb567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataCollector/DoctrineDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/**
* @psalm-type QueryType = array{
* executionMS: int,
* executionMS: float,
* explainable: bool,
* sql: string,
* params: ?array<array-key, mixed>,
Expand Down Expand Up @@ -290,7 +290,7 @@ public function getGroupedQueries()
return $this->groupedQueries;
}

private function executionTimePercentage(int $executionTimeMS, int $totalExecutionTimeMS): float
private function executionTimePercentage(float $executionTimeMS, float $totalExecutionTimeMS): float
{
if (! $totalExecutionTimeMS) {
return 0;
Expand Down

0 comments on commit fdcb567

Please sign in to comment.