Skip to content

Commit 1b41358

Browse files
authored
chore: fix withHeaders() docblock param type and example (codeigniter4#9932)
1 parent 25c6f4b commit 1b41358

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

system/Test/FeatureTestTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Closure;
1717
use CodeIgniter\Events\Events;
1818
use CodeIgniter\HTTP\Exceptions\RedirectException;
19-
use CodeIgniter\HTTP\Header;
2019
use CodeIgniter\HTTP\IncomingRequest;
2120
use CodeIgniter\HTTP\Method;
2221
use CodeIgniter\HTTP\Request;
@@ -36,7 +35,7 @@
3635
* against your application in trait format.
3736
*
3837
* @property array<int|string, mixed> $session
39-
* @property array<string, Header|list<Header>> $headers
38+
* @property array<string, list<string>|string> $headers
4039
* @property RouteCollection|null $routes
4140
*
4241
* @mixin CIUnitTestCase
@@ -115,10 +114,11 @@ public function withSession(?array $values = null)
115114
*
116115
* Example of use
117116
* withHeaders([
118-
* 'Authorization' => 'Token'
117+
* 'Authorization' => 'Token',
118+
* 'Cache-Control' => ['no-cache', 'no-store'],
119119
* ])
120120
*
121-
* @param array<string, Header|list<Header>> $headers Array of headers
121+
* @param array<string, list<string>|string> $headers Array of headers
122122
*
123123
* @return $this
124124
*/

0 commit comments

Comments
 (0)