PhpMigration\Changes\v5dot3\IncompMagic::emitToString PHP Method

emitToString() protected method

protected emitToString ( $node )
    protected function emitToString($node)
    {
        /**
         * {Description}
         * The __toString() magic method can no longer accept arguments.
         *
         * {Errmsg}
         * Fatal error: Method {class}::__tostring() cannot take arguments
         *
         * {Reference}
         * http://php.net/manual/en/migration53.incompatible.php
         */
        $message = sprintf('Method %s::__tostring() cannot take arguments', $this->visitor->getClassName());
        $this->addSpot('FATAL', true, $message, $node->getLine());
    }