Skip to content

Commit 6202def

Browse files
committed
feat: GithubErrorFormatter > Allow any ErrorFormatter
Ref: phpstan/phpstan-src@38bfb84 Ref: phpstan/phpstan-src#854
1 parent d3ed85e commit 6202def

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ErrorFormatter/GithubErrorFormatter.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types = 1);
44

55
/*
6-
* (c) Copyright (c) 2016-2020 Ondřej Mirtes <[email protected]>
6+
* (c) Copyright (c) 2016-2022 Ondřej Mirtes <[email protected]>
77
*
88
* This source file is subject to the MIT license.
99
*
@@ -45,21 +45,21 @@ class GithubErrorFormatter implements ErrorFormatter
4545
private $relativePathHelper;
4646

4747
/**
48-
* @var TableErrorFormatter
48+
* @var ErrorFormatter
4949
*/
50-
private $tableErrorformatter;
50+
private $errorFormatter;
5151

5252
public function __construct(
5353
RelativePathHelper $relativePathHelper,
54-
TableErrorFormatter $tableErrorformatter
54+
ErrorFormatter $errorFormatter
5555
) {
5656
$this->relativePathHelper = $relativePathHelper;
57-
$this->tableErrorformatter = $tableErrorformatter;
57+
$this->errorFormatter = $errorFormatter;
5858
}
5959

6060
public function formatErrors(AnalysisResult $analysisResult, Output $output): int
6161
{
62-
$this->tableErrorformatter->formatErrors($analysisResult, $output);
62+
$this->errorFormatter->formatErrors($analysisResult, $output);
6363

6464
foreach ($analysisResult->getFileSpecificErrors() as $fileSpecificError) {
6565
$metas = [

0 commit comments

Comments
 (0)