Skip to content

Commit 5efe2a3

Browse files
committed
Revert "Add test for optional offset in shouldUnionExistingItemType"
This reverts commit 2fb61a3.
1 parent 2fb61a3 commit 5efe2a3

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ function () {
2020
}
2121
};
2222

23-
// Optional offset: the composed value has the optional key absent,
24-
// shouldUnionExistingItemType should handle this gracefully.
25-
function () {
26-
/** @var non-empty-list<array{test: false, extra?: string}> $list */
27-
$list = [];
28-
$list[0]['test'] = true;
29-
30-
foreach ($list as $item) {
31-
assertType('array{test: bool, extra?: string}', $item);
32-
}
33-
};
34-
3523
function () {
3624
$list = [];
3725

0 commit comments

Comments
 (0)