Skip to content

Commit 534ee63

Browse files
committed
Fix return PHPDocs
1 parent e0e0269 commit 534ee63

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Rules/Superglobals/SuperglobalAccessRule.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
use PhpParser\Node;
1717
use PHPStan\Analyser\Scope;
18+
use PHPStan\Rules\IdentifierRuleError;
1819
use PHPStan\Rules\Rule;
19-
use PHPStan\Rules\RuleError;
2020
use PHPStan\Rules\RuleErrorBuilder;
2121
use PHPStan\Type\VerbosityLevel;
2222

@@ -37,7 +37,7 @@ public function getNodeType(): string
3737
/**
3838
* @param Node\Expr\ArrayDimFetch $node
3939
*
40-
* @return list<RuleError>
40+
* @return list<IdentifierRuleError>
4141
*/
4242
public function processNode(Node $node, Scope $scope): array
4343
{

src/Rules/Superglobals/SuperglobalAssignRule.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
use CodeIgniter\Superglobals;
1717
use PhpParser\Node;
1818
use PHPStan\Analyser\Scope;
19+
use PHPStan\Rules\IdentifierRuleError;
1920
use PHPStan\Rules\Rule;
20-
use PHPStan\Rules\RuleError;
2121
use PHPStan\Rules\RuleErrorBuilder;
2222
use PHPStan\Type\VerbosityLevel;
2323

@@ -54,7 +54,7 @@ public function processNode(Node $node, Scope $scope): array
5454
/**
5555
* @param Node\Expr\Assign $node
5656
*
57-
* @return list<RuleError>
57+
* @return list<IdentifierRuleError>
5858
*/
5959
private function processArrayDimFetch(Node $node, Scope $scope): array
6060
{
@@ -129,7 +129,7 @@ private function processArrayDimFetch(Node $node, Scope $scope): array
129129
/**
130130
* @param Node\Expr\Assign $node
131131
*
132-
* @return list<RuleError>
132+
* @return list<IdentifierRuleError>
133133
*/
134134
private function processVariableExpr(Node $node, Scope $scope): array
135135
{

0 commit comments

Comments
 (0)