@@ -3194,6 +3194,10 @@ public function dataBinaryOperations(): array
31943194'array<int, 1|2|3> ' ,
31953195'$arrayToBeUnset ' ,
31963196],
3197+ [
3198+ 'array<int, 1|2|3> ' ,
3199+ '$arrayToBeUnset2 ' ,
3200+ ],
31973201[
31983202'array ' ,
31993203'$shiftedNonEmptyArray ' ,
@@ -5036,7 +5040,7 @@ public function dataArrayFunctions(): array
50365040'array_intersect_key(...[$integers, [4, 5, 6]]) ' ,
50375041],
50385042[
5039- 'array<int|string, int > ' ,
5043+ 'array<int> ' ,
50405044'array_intersect_key(...$generalIntegersInAnotherArray, []) ' ,
50415045],
50425046[
@@ -5128,7 +5132,7 @@ public function dataArrayFunctions(): array
51285132'array_merge(...[$generalStringKeys, $generalDateTimeValues]) ' ,
51295133],
51305134[
5131- 'array<int|string, int > ' ,
5135+ 'array<int> ' ,
51325136'$mergedInts ' ,
51335137],
51345138[
@@ -5244,7 +5248,7 @@ public function dataArrayFunctions(): array
52445248'array_filter($union) ' ,
52455249],
52465250[
5247- 'array<int, int<min, -1>|int<1, max>|true> ' ,
5251+ 'array(?0 => true, ?1 => int<min, -1>|int<1, max>) ' ,
52485252'array_filter($withPossiblyFalsey) ' ,
52495253],
52505254[
@@ -7545,7 +7549,7 @@ public function dataForeachLoopVariables(): array
75457549"'end' " ,
75467550],
75477551[
7548- 'array<int, 1|2|3> ' ,
7552+ 'array<int, 1|2|3>&nonEmpty ' ,
75497553'$integers ' ,
75507554"'end' " ,
75517555],
@@ -7560,7 +7564,7 @@ public function dataForeachLoopVariables(): array
75607564"'begin' " ,
75617565],
75627566[
7563- 'array<string, 1|2|3> ' ,
7567+ 'array<string, 1|2|3>&nonEmpty ' ,
75647568'$this->property ' ,
75657569"'end' " ,
75667570],
@@ -9642,7 +9646,7 @@ public function dataGeneralizeScope(): array
96429646{
96439647return [
96449648[
9645- "array<int|string, array<int|string, array('hitCount' => int, 'loadCount' => int, 'removeCount' => int, 'saveCount' => int)>> " ,
9649+ "array<array<int|string, array('hitCount' => int, 'loadCount' => int, 'removeCount' => int, 'saveCount' => int)>> " ,
96469650'$statistics ' ,
96479651],
96489652];
@@ -9669,7 +9673,7 @@ public function dataGeneralizeScopeRecursiveType(): array
96699673{
96709674return [
96719675[
9672- 'array()|array( \'foo \' => array<int|string, array>) ' ,
9676+ 'array()|array( \'foo \' => array<array>) ' ,
96739677'$data ' ,
96749678],
96759679];
@@ -10250,6 +10254,11 @@ public function dataBug3997(): array
1025010254return $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3997.php ' );
1025110255}
1025210256
10257+ public function dataBug4016 (): array
10258+ {
10259+ return $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4016.php ' );
10260+ }
10261+
1025310262/**
1025410263 * @dataProvider dataBug2574
1025510264 * @dataProvider dataBug2577
@@ -10341,6 +10350,7 @@ public function dataBug3997(): array
1034110350 * @dataProvider dataBug3990
1034210351 * @dataProvider dataBug3991
1034310352 * @dataProvider dataBug3993
10353+ * @dataProvider dataBug4016
1034410354 * @param string $assertType
1034510355 * @param string $file
1034610356 * @param mixed ...$args
0 commit comments