Skip to content

Commit 2061445

Browse files
Initialize float values to 0.0 instead of 0
1 parent cf0d99f commit 2061445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Logging/JUnit/JunitXmlLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ final class JunitXmlLogger
8282
/**
8383
* @var array<int, float>
8484
*/
85-
private array $testSuiteTimes = [0];
85+
private array $testSuiteTimes = [0.0];
8686
private int $testSuiteLevel = 0;
8787
private ?DOMElement $currentTestCase = null;
8888
private ?HRTime $time = null;
@@ -131,7 +131,7 @@ public function testSuiteStarted(Started $event): void
131131
$this->testSuiteErrors[$this->testSuiteLevel] = 0;
132132
$this->testSuiteFailures[$this->testSuiteLevel] = 0;
133133
$this->testSuiteSkipped[$this->testSuiteLevel] = 0;
134-
$this->testSuiteTimes[$this->testSuiteLevel] = 0;
134+
$this->testSuiteTimes[$this->testSuiteLevel] = 0.0;
135135
}
136136

137137
public function testSuiteFinished(): void

0 commit comments

Comments
 (0)