Skip to content

Commit 2c314e1

Browse files
Fixing bug in Magento/PhpStan/Formatters/FilteredErrorFormatter
This bug was causing error. ```.PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function PHPStan\Command\AnalysisResult::__construct(), 9 passed in /var/www/html/dev/tests/static/framework/Magento/PhpStan/Formatters/FilteredErrorFormatter.php on line 70 and exactly 10 expected in phar:///var/www/html/vendor/phpstan/phpstan/phpstan.phar/src/Command/AnalysisResult.php:58 Stack trace: ```
1 parent 93f87fe commit 2c314e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/static/framework/Magento/PhpStan/Formatters/FilteredErrorFormatter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
7676
$analysisResult->isDefaultLevelUsed(),
7777
$analysisResult->getProjectConfigFile(),
7878
$analysisResult->isResultCacheSaved(),
79-
$analysisResult->getPeakMemoryUsageBytes()
79+
$analysisResult->getPeakMemoryUsageBytes(),
80+
$analysisResult->isResultCacheUsed(),
8081
);
8182

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

0 commit comments

Comments
 (0)