in src/expression/StaticElementInitializerExpression.hack [18:31]
protected static function matchImpl(
this::TNode $node,
): ?Expression<(arraykey, mixed)> {
$value = StaticExpression::match($node->getValue())?->getValue();
$key = StaticExpression::match($node->getKey())?->getValue();
if ($key is string) {
return new self(tuple($key, $value));
}
if ($key is int) {
return new self(tuple($key, $value));
}
return null;
}