src/PhpToZephir/Converter/Printer/Expr/ArrayPrinter.php
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();
        }
    }
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();
        }
    }
@param Expr\Array_ $node
@param bool        $returnAsArray

@return string|array