Skip to content

Commit 199654a

Browse files
Explicitly cast integer to string
1 parent bc95db3 commit 199654a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Report/Html/Renderer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ protected function setCommonTemplateVariables(Template $template, AbstractNode $
171171
'version' => $this->version,
172172
'runtime' => $this->runtimeString(),
173173
'generator' => $this->generator,
174-
'low_upper_bound' => $this->thresholds->lowUpperBound(),
175-
'high_lower_bound' => $this->thresholds->highLowerBound(),
174+
'low_upper_bound' => (string) $this->thresholds->lowUpperBound(),
175+
'high_lower_bound' => (string) $this->thresholds->highLowerBound(),
176176
],
177177
);
178178
}

src/Report/Html/Renderer/File.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ private function renderLine(Template $template, int $lineNumber, string $lineCon
965965
{
966966
$template->setVar(
967967
[
968-
'lineNumber' => $lineNumber,
968+
'lineNumber' => (string) $lineNumber,
969969
'lineContent' => $lineContent,
970970
'class' => $class,
971971
'popover' => $popover,

0 commit comments

Comments
 (0)