Skip to content

Commit 627be15

Browse files
Fix
1 parent ef97675 commit 627be15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Rules/Arrays/InvalidKeyInArrayDimFetchRule.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use PHPStan\Rules\RuleErrorBuilder;
1111
use PHPStan\Rules\RuleLevelHelper;
1212
use PHPStan\Type\ErrorType;
13-
use PHPStan\Type\MixedType;
1413
use PHPStan\Type\Type;
1514
use PHPStan\Type\VerbosityLevel;
1615
use function sprintf;
@@ -60,7 +59,7 @@ public function processNode(Node $node, Scope $scope): array
6059
'',
6160
static fn (Type $dimType): bool => AllowedArrayKeysTypes::getType($reportArrayKeyCast)->isSuperTypeOf($dimType)->yes(),
6261
)->getType();
63-
if ($dimensionType instanceof MixedType) {
62+
if ($dimensionType instanceof ErrorType) {
6463
return [];
6564
}
6665

0 commit comments

Comments
 (0)