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.
2 parents 5f47187 + a99992d commit 7681929Copy full SHA for 7681929
src/Tests/ArrayKeyVisitor.php
@@ -42,7 +42,7 @@ public function enterNode(Node $node)
42
foreach ($node->items as $item)
43
{
44
/** @var ArrayItem $item */
45
- if ($item->key instanceof String_)
+ if ($item instanceof ArrayItem && $item->key instanceof String_)
46
47
$this->keys[] = $item->key->value;
48
}
0 commit comments