public function matches()

in src/Constraint/TraversableContains.hack [16:32]


  public function matches(Traversable<mixed> $other): bool {
    if (\is_object($this->value)) {
      foreach ($other as $element) {
        if ($element === $this->value) {
          return true;
        }
      }
      return false;
    }
    foreach ($other as $element) {
      /* HHAST_IGNORE_ERROR[NoPHPEquality] */
      if ($element == $this->value) {
        return true;
      }
    }
    return false;
  }