Skip to content

Commit 6d90185

Browse files
committed
Fix: Use sprintf()
1 parent 1235304 commit 6d90185

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Reporter/DefaultReporter.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,13 @@ private function list(SlowTestList $slowTestList): array
125125

126126
$testDescription = $slowTest->testDescription()->toString();
127127

128-
return <<<TXT
129-
{$formattedNumber}. {$formattedDuration} {$formattedMaximumDuration} {$testDescription}
130-
TXT;
128+
return \sprintf(
129+
'%s. %s %s %s',
130+
$formattedNumber,
131+
$formattedDuration,
132+
$formattedMaximumDuration,
133+
$testDescription
134+
);
131135
}, \range(1, $slowTestListThatWillBeReported->slowTestCount()->toCount()->toInt()), $slowTestListThatWillBeReported->toArray());
132136
}
133137

0 commit comments

Comments
 (0)