protected static function matchImpl()

in src/expression/StaticFieldInitializerExpression.hack [18:31]


  protected static function matchImpl(
    this::TNode $node,
  ): ?Expression<(arraykey, mixed)> {
    $value = StaticExpression::match($node->getValue())?->getValue();
    $key = StaticExpression::match($node->getName())?->getValue();

    if ($key is string) {
      return new self(tuple($key, $value));
    }
    if ($key is int) {
      return new self(tuple($key, $value));
    }
    return null;
  }