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.
This commit is contained in:
Chirag Aggarwal
2026-04-01 21:31:08 +05:30
parent 30e0ca81bd
commit 2c1060f57a
@@ -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));