src/PhpToZephir/Converter/Printer/Stmt/WhilePrinter.php
public function convert(Stmt\While_ $node)
    {
        $collected = $this->assignManipulator->collectAssignInCondition($node->cond);
        $node->cond = $this->assignManipulator->transformAssignInConditionTest($node->cond);

        return $collected->getCollected().'while ('.$this->dispatcher->p($node->cond).') {'
             .$this->dispatcher->pStmts($node->stmts)."\n".$collected->getCollected().'}';
    }
public function convert(Stmt\While_ $node)
    {
        $collected = $this->assignManipulator->collectAssignInCondition($node->cond);
        $node->cond = $this->assignManipulator->transformAssignInConditionTest($node->cond);

        return $collected->getCollected().'while ('.$this->dispatcher->p($node->cond).') {'
             .$this->dispatcher->pStmts($node->stmts)."\n".$collected->getCollected().'}';
    }
@param Stmt\While_ $node

@return string