Skip to content

Commit b1c847e

Browse files
committed
test implode() resolves unions with bool
1 parent 2659130 commit b1c847e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PHPStan/Analyser/nsrt/implode.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,9 @@ public function constArrays5($constArr) {
5151
public function constArrays6($constArr) {
5252
assertType("string", implode('', $constArr));
5353
}
54+
55+
/** @param array{10: 1|2|bool, xy: 'a'|'b'|'c'} $constArr */
56+
public function constArrays7($constArr) {
57+
assertType("'1a'|'1b'|'1c'|'2a'|'2b'|'2c'|'a'|'b'|'c'", implode('', $constArr));
58+
}
5459
}

0 commit comments

Comments
 (0)