Skip to content

Commit 60b0b1a

Browse files
Add test
1 parent 4b9c3fb commit 60b0b1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug13835;
4+
5+
use function PHPStan\Testing\assertType;
6+
7+
assertType('list<string>|false', get_headers('http://example.com'));
8+
assertType('array<int|string, list<string>>|string|false', get_headers('http://example.com', true));
9+
assertType('list<string>|false', get_headers('http://example.com', false));

0 commit comments

Comments
 (0)