Skip to content

Commit 62118f7

Browse files
committed
Remove useless config file parameter on AnalysisResult class
1 parent 65d5d1b commit 62118f7

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/AnalysisResult.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ class AnalysisResult
4949
* @param string[] $notFileSpecificErrors
5050
* @param string[] $internalErrors
5151
* @param string[] $warnings
52-
* @param string|null $projectConfigFile
5352
*/
5453
public function __construct(
5554
array $fileSpecificErrors,
5655
array $notFileSpecificErrors,
5756
array $internalErrors,
58-
array $warnings,
59-
?string $projectConfigFile
57+
array $warnings
6058
)
6159
{
6260
usort(
@@ -78,7 +76,6 @@ static function (Error $a, Error $b): int {
7876
$this->notFileSpecificErrors = $notFileSpecificErrors;
7977
$this->internalErrors = $internalErrors;
8078
$this->warnings = $warnings;
81-
$this->projectConfigFile = $projectConfigFile;
8279
}
8380

8481
public function hasErrors(): bool

tests/ErrorFormatter/CheckstyleErrorFormatterTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ public function testTraitPath(): void
176176
[$error],
177177
[],
178178
[],
179-
[],
180-
null
179+
[]
181180
), $this->getOutput());
182181
$this->assertXmlStringEqualsXmlString('<checkstyle>
183182
<file name="FooTrait.php">

tests/ErrorFormatterTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ protected function getAnalysisResult(int $numFileErrors, int $numGenericErrors):
108108
$fileErrors,
109109
$genericErrors,
110110
[],
111-
[],
112-
null
111+
[]
113112
);
114113
}
115114

0 commit comments

Comments
 (0)