src/PhpToZephir/Converter/Printer/ConstPrinter.php
public function convert(Node\Const_ $node)
    {
        if ($node->value instanceof Node\Expr\Array_) {
            $this->logger->logNode(
                'Array not supported in const, transform as empty string (see #188)',
                $node,
                $this->dispatcher->getMetadata()->getFullQualifiedNameClass()
            );
            $node->value = new Node\Scalar\String_('');
        }

        return $node->name.' = '.$this->dispatcher->p($node->value);
    }
public function convert(Node\Const_ $node)
    {
        if ($node->value instanceof Node\Expr\Array_) {
            $this->logger->logNode(
                'Array not supported in const, transform as empty string (see #188)',
                $node,
                $this->dispatcher->getMetadata()->getFullQualifiedNameClass()
            );
            $node->value = new Node\Scalar\String_('');
        }

        return $node->name.' = '.$this->dispatcher->p($node->value);
    }
public function convert ( Node \ Const_ $ node ) { if ( $ node -> value instanceof Node \ Expr \ Array_ ) { $ this -> logger -> logNode ( 'Array not supported in const, transform as empty string (see #188)' , $ node , $ this -> dispatcher -> getMetadata ( ) -> getFullQualifiedNameClass ( ) ) ; $ node -> value = new Node \ Scalar \ String_ ( '' ) ; } return $ node -> name . ' = ' . $ this -> dispatcher -> p ( $ node -> value ) ; }
@param Node\Const_ $node

@return string
@param Node \ Const_ $node