Skip to content

Commit 1f839ee

Browse files
committed
Require PHPStan v1.11
1 parent 7fa9653 commit 1f839ee

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"require": {
2525
"php": "^8.1",
2626
"codeigniter4/framework": "^4.5",
27-
"phpstan/phpstan": "^1.10"
27+
"phpstan/phpstan": "^1.11"
2828
},
2929
"require-dev": {
3030
"codeigniter/coding-standard": "^1.7",
3131
"codeigniter4/shield": "^1.0",
3232
"friendsofphp/php-cs-fixer": "^3.49",
3333
"nexusphp/cs-config": "^3.21",
34-
"phpstan/extension-installer": "^1.3",
35-
"phpstan/phpstan-deprecation-rules": "^1.1",
36-
"phpstan/phpstan-phpunit": "^1.3",
37-
"phpstan/phpstan-strict-rules": "^1.5",
34+
"phpstan/extension-installer": "^1.4",
35+
"phpstan/phpstan-deprecation-rules": "^1.2",
36+
"phpstan/phpstan-phpunit": "^1.4",
37+
"phpstan/phpstan-strict-rules": "^1.6",
3838
"phpunit/phpunit": "^10.5"
3939
},
4040
"conflict": {

src/Rules/Superglobals/SuperglobalAccessRule.php

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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)