Skip to content

Commit

Permalink
Cast line to int in SARIF formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Nov 6, 2024
1 parent 9973195 commit b6d3898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PHPStan/SarifErrorFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
'uriBaseId' => self::URI_BASE_ID,
],
'region' => [
'startLine' => $fileSpecificError->getLine(),
'startLine' => (int) $fileSpecificError->getLine(),
],
],
],
Expand Down

0 comments on commit b6d3898

Please sign in to comment.