Skip to content

Commit d37bc49

Browse files
Comment
1 parent 08a6ce5 commit d37bc49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/PHPStan/Rules/Arrays/data/pr-4385.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ public function test($array, $int, $string, $object, $constantArray)
2323
$array[$array];
2424
$array[$int];
2525
$array[$string];
26-
$array[$object];
27-
$array[$arrayOrObject];
26+
$array[$object]; // Reported by InvalidKeyInArrayDimFetchRule
27+
$array[$arrayOrObject]; // Reported by InvalidKeyInArrayDimFetchRule
2828
$array[$arrayOrInt];
2929
$array[$arrayOrString];
3030
$array[$arrayOrZero];
3131

3232
$constantArray[$array];
3333
$constantArray[$int];
3434
$constantArray[$string];
35-
$constantArray[$object];
36-
$constantArray[$arrayOrObject];
35+
$constantArray[$object]; // Reported by InvalidKeyInArrayDimFetchRule
36+
$constantArray[$arrayOrObject]; // Reported by InvalidKeyInArrayDimFetchRule
3737
$constantArray[$arrayOrInt];
3838
$constantArray[$arrayOrString];
39-
$constantArray[$arrayOrZero];
39+
$constantArray[$arrayOrZero]; // Reported by InvalidKeyInArrayDimFetchRule
4040

4141
$arrayOrString[$arrayOrInt];
4242
}

0 commit comments

Comments
 (0)