Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c0d2635

Browse files
Merge 5.0 into 5.1 (#3195)
2 parents 8afd666 + 9577c37 commit c0d2635

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎phpstan.neon.dist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ parameters:
1313

1414
ignoreErrors:
1515
- '#Unsafe usage of new static#'
16-
- '#Call to an undefined method [a-zA-Z0-9\\_\<\>]+::[a-zA-Z]+\(\)#'
16+
- '#Call to an undefined method [a-zA-Z0-9\\_\<\>\(\)]+::[a-zA-Z]+\(\)#'
1717

1818
services:
1919
errorFormatter.sarif:

‎tests/PHPStan/SarifErrorFormatter.php‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
6363
'uri' => $this->relativePathHelper->getRelativePath($fileSpecificError->getFile()),
6464
'uriBaseId' => self::URI_BASE_ID,
6565
],
66-
'region' => [
67-
'startLine' => $fileSpecificError->getLine(),
68-
],
6966
],
7067
],
7168
],
@@ -78,6 +75,10 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
7875
$result['properties']['tip'] = $fileSpecificError->getTip();
7976
}
8077

78+
if ($fileSpecificError->getLine() !== null) {
79+
$result['locations'][0]['physicalLocation']['region']['startLine'] = $fileSpecificError->getLine();
80+
}
81+
8182
$results[] = $result;
8283
}
8384

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /