From fdcb56792632069e136110255215267ef2bfd053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Sat, 11 Dec 2021 12:53:34 +0100 Subject: [PATCH] Fix wrong floatMS type in DoctrineDataCollector Fixes a deprecation warning on PHP 8.1 closes #1446 --- DataCollector/DoctrineDataCollector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataCollector/DoctrineDataCollector.php b/DataCollector/DoctrineDataCollector.php index cca34d4b5..4c211d7c3 100644 --- a/DataCollector/DoctrineDataCollector.php +++ b/DataCollector/DoctrineDataCollector.php @@ -25,7 +25,7 @@ /** * @psalm-type QueryType = array{ - * executionMS: int, + * executionMS: float, * explainable: bool, * sql: string, * params: ?array, @@ -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;