From 2c1060f57aedd21a5114b4d151d0a445d9445dfd Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 1 Apr 2026 21:31:08 +0530 Subject: [PATCH] Fix null array key in HeadersTest Cast null to string to avoid invalid array key type error while preserving the test's intent of validating empty keys. --- tests/unit/Functions/Validator/HeadersTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/Functions/Validator/HeadersTest.php b/tests/unit/Functions/Validator/HeadersTest.php index 4a45f57427..b9cc7c6ea4 100644 --- a/tests/unit/Functions/Validator/HeadersTest.php +++ b/tests/unit/Functions/Validator/HeadersTest.php @@ -77,7 +77,7 @@ class HeadersTest extends TestCase $this->assertFalse($this->object->isValid($headers)); $headers = [ - null => 'value', + (string) null => 'value', ]; $this->assertFalse($this->object->isValid($headers));