Skip to content

Commit 93b3bf5

Browse files
committed
[BCB] Remove AnalysisResult::getInternalErrors()
1 parent 06ce951 commit 93b3bf5

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

UPGRADING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
240240
* Remove unused `PHPStanTestCase::$useStaticReflectionProvider`
241241
* Remove `PHPStanTestCase::getReflectors()`, use `getReflector()` instead
242242
* Remove `ClassReflection::getFileNameWithPhpDocs()`, use `getFileName()` instead
243+
* Remove `AnalysisResult::getInternalErrors()`, use `getInternalErrorObjects()` instead

src/Command/AnalysisResult.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PHPStan\Analyser\Error;
66
use PHPStan\Analyser\InternalError;
77
use PHPStan\Collectors\CollectedData;
8-
use function array_map;
98
use function count;
109
use function usort;
1110

@@ -82,15 +81,6 @@ public function getNotFileSpecificErrors(): array
8281
return $this->notFileSpecificErrors;
8382
}
8483

85-
/**
86-
* @deprecated Use getInternalErrorObjects
87-
* @return list<string>
88-
*/
89-
public function getInternalErrors(): array
90-
{
91-
return array_map(static fn (InternalError $internalError) => $internalError->getMessage(), $this->internalErrors);
92-
}
93-
9484
/**
9585
* @return list<InternalError>
9686
*/

0 commit comments

Comments
 (0)