File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/Command/ErrorFormatter Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1789,6 +1789,7 @@ services:
1789
1789
class : PHPStan\Command\ErrorFormatter\GithubErrorFormatter
1790
1790
arguments :
1791
1791
relativePathHelper : @simpleRelativePathHelper
1792
+ errorFormatter : @errorFormatter.table
1792
1793
1793
1794
errorFormatter.teamcity :
1794
1795
class : PHPStan\Command\ErrorFormatter\TeamcityErrorFormatter
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ class GithubErrorFormatter implements ErrorFormatter
19
19
20
20
private RelativePathHelper $ relativePathHelper ;
21
21
22
- private TableErrorFormatter $ tableErrorformatter ;
22
+ private ErrorFormatter $ errorFormatter ;
23
23
24
24
public function __construct (
25
25
RelativePathHelper $ relativePathHelper ,
26
- TableErrorFormatter $ tableErrorformatter
26
+ ErrorFormatter $ errorFormatter
27
27
)
28
28
{
29
29
$ this ->relativePathHelper = $ relativePathHelper ;
30
- $ this ->tableErrorformatter = $ tableErrorformatter ;
30
+ $ this ->errorFormatter = $ errorFormatter ;
31
31
}
32
32
33
33
public function formatErrors (AnalysisResult $ analysisResult , Output $ output ): int
34
34
{
35
- $ this ->tableErrorformatter ->formatErrors ($ analysisResult , $ output );
35
+ $ this ->errorFormatter ->formatErrors ($ analysisResult , $ output );
36
36
37
37
foreach ($ analysisResult ->getFileSpecificErrors () as $ fileSpecificError ) {
38
38
$ metas = [
You can’t perform that action at this time.
0 commit comments