From 8b8a03cc3f7a5ab5c605ce272c1fb84ec963e284 Mon Sep 17 00:00:00 2001 From: michalsn Date: Sat, 7 Feb 2026 12:10:05 +0100 Subject: [PATCH] chore: fix withHeaders() docblock param type and example --- system/Test/FeatureTestTrait.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/Test/FeatureTestTrait.php b/system/Test/FeatureTestTrait.php index a19e396e2392..618a2bcdb485 100644 --- a/system/Test/FeatureTestTrait.php +++ b/system/Test/FeatureTestTrait.php @@ -16,7 +16,6 @@ use Closure; use CodeIgniter\Events\Events; use CodeIgniter\HTTP\Exceptions\RedirectException; -use CodeIgniter\HTTP\Header; use CodeIgniter\HTTP\IncomingRequest; use CodeIgniter\HTTP\Method; use CodeIgniter\HTTP\Request; @@ -36,7 +35,7 @@ * against your application in trait format. * * @property array $session - * @property array> $headers + * @property array|string> $headers * @property RouteCollection|null $routes * * @mixin CIUnitTestCase @@ -115,10 +114,11 @@ public function withSession(?array $values = null) * * Example of use * withHeaders([ - * 'Authorization' => 'Token' + * 'Authorization' => 'Token', + * 'Cache-Control' => ['no-cache', 'no-store'], * ]) * - * @param array> $headers Array of headers + * @param array|string> $headers Array of headers * * @return $this */