We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b9c3fb commit 60b0b1aCopy full SHA for 60b0b1a
tests/PHPStan/Analyser/nsrt/get_headers.php
@@ -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