mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user