We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7882bc commit 6608e14Copy full SHA for 6608e14
tests/FunctionsTest.php
@@ -155,6 +155,10 @@ public function testIsFirstKeyOperator(callable $cast): void
155
{
156
$this->assertFalse(is_first_key_operator($cast(['y' => 1])));
157
$this->assertTrue(is_first_key_operator($cast(['$set' => ['y' => 1]])));
158
+
159
+ // Empty and packed arrays are unlikely arguments, but still valid
160
+ $this->assertFalse(is_first_key_operator($cast([])));
161
+ $this->assertFalse(is_first_key_operator($cast(['foo'])));
162
}
163
164
/** @dataProvider provideInvalidDocumentValues */
0 commit comments