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 committed 2026-04-01 21:31:08 +05:30
1 parent 30e0ca81bd
commit 2c1060f57a
1 file changed
+1 -1
@@ -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));