Skip to content

Commit 4ec86b7

Browse files
committed
Fix tests
1 parent 53817aa commit 4ec86b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PHPStan/Analyser/LegacyNodeScopeResolverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5153,7 +5153,7 @@ public function dataArrayFunctions(): array
51535153
'array_values($generalStringKeys)',
51545154
],
51555155
[
5156-
'array<int|non-empty-string, stdClass>&nonEmpty',
5156+
'array<int|(literal-string&non-empty-string), stdClass>&nonEmpty',
51575157
'array_merge($stringOrIntegerKeys)',
51585158
],
51595159
[
@@ -5169,15 +5169,15 @@ public function dataArrayFunctions(): array
51695169
'array_merge($stringOrIntegerKeys, $generalStringKeys)',
51705170
],
51715171
[
5172-
'array<int|non-empty-string, \'foo\'|stdClass>&nonEmpty',
5172+
'array<int|(literal-string&non-empty-string), \'foo\'|stdClass>&nonEmpty',
51735173
'array_merge($stringKeys, $stringOrIntegerKeys)',
51745174
],
51755175
[
5176-
'array<int|non-empty-string, \'foo\'|stdClass>&nonEmpty',
5176+
'array<int|(literal-string&non-empty-string), \'foo\'|stdClass>&nonEmpty',
51775177
'array_merge($stringOrIntegerKeys, $stringKeys)',
51785178
],
51795179
[
5180-
'array<int|non-empty-string, 2|4|\'a\'|\'b\'|\'green\'|\'red\'|\'trapezoid\'>&nonEmpty',
5180+
'array<int|(literal-string&non-empty-string), 2|4|\'a\'|\'b\'|\'green\'|\'red\'|\'trapezoid\'>&nonEmpty',
51815181
'array_merge(array("color" => "red", 2, 4), array("a", "b", "color" => "green", "shape" => "trapezoid", 4))',
51825182
],
51835183
[

0 commit comments

Comments
 (0)