Skip to content

Commit 24bf9af

Browse files
phpstan-botstaabm
authored andcommitted
Fix CI failures [claude-ci-fix]
Automated fix attempt 1 for CI failures.
1 parent a02c4ef commit 24bf9af

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Type/Constant/ConstantArrayType.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -792,14 +792,7 @@ private function resolveFiniteScalarKeyTypes(Type $offsetType): ?array
792792
return null;
793793
}
794794

795-
$result = [];
796-
foreach ($finiteScalarTypes as $scalarType) {
797-
if (!$scalarType instanceof ConstantIntegerType) {
798-
return null;
799-
}
800-
$result[] = $scalarType;
801-
}
802-
return $result;
795+
return $finiteScalarTypes;
803796
}
804797

805798
return null;

0 commit comments

Comments
 (0)