File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616use Closure ;
1717use CodeIgniter \Events \Events ;
1818use CodeIgniter \HTTP \Exceptions \RedirectException ;
19- use CodeIgniter \HTTP \Header ;
2019use CodeIgniter \HTTP \IncomingRequest ;
2120use CodeIgniter \HTTP \Method ;
2221use CodeIgniter \HTTP \Request ;
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 */
You can’t perform that action at this time.
0 commit comments