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

Appearance settings

Commit 9577c37

Browse filesBrowse files
Merge 4.8 into 5.0 (#3194)
2 parents 095076b + 05a090b commit 9577c37
Copy full SHA for 9577c37

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed

‎phpstan.neon.dist

Copy file name to clipboardExpand all lines: phpstan.neon.dist
+1-1Lines 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

Copy file name to clipboardExpand all lines: tests/PHPStan/SarifErrorFormatter.php
+4-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.