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 4c90917 commit a99992dCopy full SHA for a99992d
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