|
9 | 9 | use PhpParser\Node; |
10 | 10 | use PHPStan\Analyser\Scope; |
11 | 11 | use PHPStan\Internal\ComposerHelper; |
| 12 | +use PHPStan\Rules\IdentifierRuleError; |
12 | 13 | use PHPStan\Rules\Rule; |
13 | 14 | use PHPStan\Rules\RuleError; |
14 | 15 | use staabm\PHPStanTodoBy\utils\CommentMatcher; |
@@ -51,7 +52,7 @@ final class TodoByPackageVersionRule implements Rule |
51 | 52 | private string $workingDirectory; |
52 | 53 |
|
53 | 54 | /** |
54 | | - * @var null|string|RuleError |
| 55 | + * @var null|string|IdentifierRuleError |
55 | 56 | */ |
56 | 57 | private $phpPlatformVersion; |
57 | 58 |
|
@@ -139,7 +140,7 @@ public function processNode(Node $node, Scope $scope): array |
139 | 140 | } |
140 | 141 |
|
141 | 142 | /** |
142 | | - * @return bool|RuleError |
| 143 | + * @return bool|IdentifierRuleError |
143 | 144 | */ |
144 | 145 | private function satisfiesPhpPlatformPackage(string $package, string $version, Comment $comment, int $wholeMatchStartOffset) |
145 | 146 | { |
@@ -168,7 +169,7 @@ private function satisfiesPhpPlatformPackage(string $package, string $version, C |
168 | 169 | } |
169 | 170 |
|
170 | 171 | /** |
171 | | - * @return bool|RuleError |
| 172 | + * @return bool|IdentifierRuleError |
172 | 173 | */ |
173 | 174 | private function satisfiesVirtualPackage(string $package, string $version, Comment $comment, int $wholeMatchStartOffset) |
174 | 175 | { |
@@ -205,7 +206,7 @@ private function satisfiesVirtualPackage(string $package, string $version, Comme |
205 | 206 | } |
206 | 207 |
|
207 | 208 | /** |
208 | | - * @return RuleError|string |
| 209 | + * @return IdentifierRuleError|string |
209 | 210 | */ |
210 | 211 | private function readPhpPlatformVersion(Comment $comment, int $wholeMatchStartOffset) |
211 | 212 | { |
@@ -253,7 +254,7 @@ private function readPhpPlatformVersion(Comment $comment, int $wholeMatchStartOf |
253 | 254 | } |
254 | 255 |
|
255 | 256 | /** |
256 | | - * @return bool|RuleError |
| 257 | + * @return bool|IdentifierRuleError |
257 | 258 | */ |
258 | 259 | private function satisfiesInstalledPackage(string $package, string $version, Comment $comment, int $wholeMatchStartOffset) |
259 | 260 | { |
|
0 commit comments