code: public function convert(Expr\Array_ $node, $returnAsArray = false)
      {
          $collected = $this->assignManipulator->collectAssignInCondition($node->items);
          $node->items = $this->assignManipulator->transformAssignInConditionTest($node->items);
  
          $collected->setExpr('['.$this->dispatcher->pCommaSeparated($node->items).']');
  
          if ($returnAsArray === true) {
              return $collected;
          } else {
              return $collected->getCollected().$collected->getExpr();
          }
      }
docs: @param Expr\Array_ $node
  @param bool        $returnAsArray
  
  @return string|array