diff --git a/src/Analyser/Ignore/IgnoredErrorHelperResult.php b/src/Analyser/Ignore/IgnoredErrorHelperResult.php index 7ef13fa85b..6490999b80 100644 --- a/src/Analyser/Ignore/IgnoredErrorHelperResult.php +++ b/src/Analyser/Ignore/IgnoredErrorHelperResult.php @@ -42,7 +42,7 @@ public function getErrors(): array } /** - * @param Error[] $errors + * @param list $errors * @param string[] $analysedFiles */ public function process( diff --git a/src/Command/FixerWorkerCommand.php b/src/Command/FixerWorkerCommand.php index 8701f1045d..aedb4bf858 100644 --- a/src/Command/FixerWorkerCommand.php +++ b/src/Command/FixerWorkerCommand.php @@ -355,7 +355,7 @@ private function transformErrorIntoInternalError(Error $error): InternalError /** * @param string[] $inceptionFiles - * @param array $errors + * @param list $errors * @return array{list, list} */ private function filterErrors(array $errors, IgnoredErrorHelperResult $ignoredErrorHelperResult, bool $onlyFiles, array $inceptionFiles, bool $hasInternalErrors): array diff --git a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php index ec88d167bd..edae4aeeab 100644 --- a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php @@ -1558,7 +1558,7 @@ public function testBug13310(): void /** * @param string[]|null $allAnalysedFiles - * @return Error[] + * @return list */ private function runAnalyse(string $file, ?array $allAnalysedFiles = null): array { diff --git a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php index 8e209d7b93..b6a160de93 100644 --- a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php +++ b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php @@ -18,7 +18,7 @@ public function testBug13529(): void } /** - * @return Error[] + * @return list */ private function runAnalyse(string $file): array {