Skip to content

Commit 58c1752

Browse files
committed
Added regression test
1 parent 37c720a commit 58c1752

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/PHPStan/Levels/data/arrayAccess.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ public function doLorem(
4444
}
4545

4646
}
47+
48+
/**
49+
* @return mixed[]
50+
*/
51+
function bug12931():array {
52+
/** @var array<string, array<string, int>> $data */
53+
$data = [];
54+
$data['attr'] = [];
55+
$data['attr']['first'] = 1;
56+
$data['attr']['second'] = 2;
57+
$data['attr']['third'] = 3;
58+
59+
return $data;
60+
}

0 commit comments

Comments
 (0)