Skip to content

Commit fea60a0

Browse files
committed
Fix build
1 parent 7738398 commit fea60a0

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/PHPStan/Analyser/nsrt/overwritten-arrays.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -102,30 +102,4 @@ public function doFoo6(array $a): void
102102
assertType('array<int, 1|2|string>', $a);
103103
}
104104

105-
/**
106-
* @param array<int, string> $a
107-
*/
108-
public function doFoo7(array $a): void
109-
{
110-
foreach ($a as &$v) {
111-
$v = 1;
112-
}
113-
114-
assertType('array<int, 1>', $a);
115-
}
116-
117-
/**
118-
* @param array<int, string> $a
119-
*/
120-
public function doFoo8(array $a): void
121-
{
122-
foreach ($a as &$v) {
123-
if (rand(0, 1)) {
124-
$v = 1;
125-
}
126-
}
127-
128-
assertType('array<int, 1|string>', $a);
129-
}
130-
131105
}

0 commit comments

Comments
 (0)