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

        return $collected->getCollected().'return'.(null !== $node->expr ? ' '.$this->dispatcher->p($node->expr) : '').';';
    }
public function convert(Stmt\Return_ $node)
    {
        $collected = $this->assignManipulator->collectAssignInCondition($node->expr);
        $node->expr = $this->assignManipulator->transformAssignInConditionTest($node->expr);

        return $collected->getCollected().'return'.(null !== $node->expr ? ' '.$this->dispatcher->p($node->expr) : '').';';
    }
@param Stmt\Return_ $node

@return string