Skip to content

Commit b43541d

Browse files
authored
Compatibility with PHPStan 1.12
1 parent b3f0281 commit b43541d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

framework/Magento/PhpStan/Formatters/FilteredErrorFormatter.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
class FilteredErrorFormatter implements ErrorFormatter
4242
{
4343
private const MUTE_ERROR_ANNOTATION = 'phpstan:ignore';
44-
4544
private const NO_ERRORS = 0;
4645

4746
/**
@@ -67,14 +66,19 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
6766
return self::NO_ERRORS;
6867
}
6968

69+
//@phpstan:ignore-line
7070
$clearedAnalysisResult = new AnalysisResult(
7171
$this->clearIgnoredErrors($analysisResult->getFileSpecificErrors()),
7272
$analysisResult->getNotFileSpecificErrors(),
7373
$analysisResult->getInternalErrors(),
7474
$analysisResult->getWarnings(),
75+
$analysisResult->getCollectedData(),
7576
$analysisResult->isDefaultLevelUsed(),
7677
$analysisResult->getProjectConfigFile(),
77-
$analysisResult->isResultCacheSaved()
78+
$analysisResult->isResultCacheSaved(),
79+
$analysisResult->getPeakMemoryUsageBytes(),
80+
$analysisResult->isResultCacheUsed(),
81+
[]
7882
);
7983

8084
return $this->tableErrorFormatter->formatErrors($clearedAnalysisResult, $output);

0 commit comments

Comments
 (0)