Skip to content

Commit 11d1bbb

Browse files
Fix
1 parent 20a1e25 commit 11d1bbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/PHPStan/Analyser/nsrt/bug-14037.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
*/
1010
function splice(array $a): void {
1111
array_splice($a, 0, 0);
12-
assertType("array<'a'|int<0, max, mixed>", $a);
12+
assertType("array<'a'|int<0, max>, mixed>", $a);
1313
}

tests/PHPStan/Type/ArrayTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public static function dataSpliceArray(): array
362362
new ConstantIntegerType(0),
363363
new ConstantIntegerType(0),
364364
new ArrayType(new MixedType(), new MixedType()),
365-
'array<int<0, max>|string, mixed>',
365+
'array<(int<0, max>|string), mixed>',
366366
],
367367
];
368368
}

0 commit comments

Comments
 (0)