File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change @@ -982,6 +982,12 @@ public function testArrayUnion(): void
982982 $ this ->assertNoErrors ($ errors );
983983 }
984984
985+ public function testBug6948 (): void
986+ {
987+ $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-6948.php ' );
988+ $ this ->assertNoErrors ($ errors );
989+ }
990+
985991 public function testBug7963 (): void
986992 {
987993 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-7963.php ' );
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types = 1 );
2+
3+ namespace Bug6948 ;
4+
5+ $ row = [1 ];
6+ if (rand ()) {
7+ $ row [] = $ row ;
8+ }
9+ if (rand ()) {
10+ $ row [] = $ row ;
11+ }
12+ if (rand ()) {
13+ $ row [] = $ row ;
14+ }
15+
16+ if (rand ()) {
17+ $ row [] = $ row ;
18+ }
19+ if (rand ()) {
20+ $ row [] = $ row ;
21+ }
22+ if (rand ()) {
23+ $ row [] = $ row ;
24+ }
25+
26+ if (rand ()) {
27+ $ row [] = $ row ;
28+ }
29+ if (rand ()) {
30+ $ row [] = $ row ;
31+ }
32+ if (rand ()) {
33+ $ row [] = $ row ;
34+ }
35+
36+ if (rand ()) {
37+ $ row [] = $ row ;
38+ }
39+ if (rand ()) {
40+ $ row [] = $ row ;
41+ }
42+ if (rand ()) {
43+ $ row [] = $ row ;
44+ }
45+
46+ if (rand ()) {
47+ $ row [] = $ row ;
48+ }
49+ if (rand ()) {
50+ $ row [] = $ row ;
51+ }
52+ if (rand ()) {
53+ $ row [] = $ row ;
54+ }
55+
56+ if (rand ()) {
57+ $ row [] = $ row ;
58+ }
59+ if (rand ()) {
60+ $ row [] = $ row ;
61+ }
62+ if (rand ()) {
63+ $ row [] = $ row ;
64+ }
You can’t perform that action at this time.
0 commit comments