Skip to content

Commit b095655

Browse files
authored
Fix compatibility on optional key on array dim fetch to be Mixed on phpstan patch 2.1.x-dev (#8008)
1 parent cb51f65 commit b095655

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NodeTypeResolver/NodeTypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private function resolveArrayDimFetchType(
415415
continue;
416416
}
417417

418-
return $originalNativeType;
418+
return new MixedType();
419419
}
420420

421421
return $type;

0 commit comments

Comments
 (0)