Skip to content

Cannot modify readonly property DOMElement::$tagName #10

@jviure

Description

@jviure

This part of InvoiceSubmission.php (line 506-514)

// IDFactura (required)
if (method_exists($this, 'getInvoiceId')) {
$invoiceId = $this->getInvoiceId();
if (method_exists($invoiceId, 'toXml')) {
$idFacturaNode = $invoiceId->toXml($doc);
$idFacturaNode->tagName = 'IDFactura';
$root->appendChild($idFacturaNode);
}
}

is giving this error:

Cannot modify readonly property DOMElement::$tagName

Stack frames (49)
48
Error
…/vendor/eseperio/verifactu-php/src/models/InvoiceSubmission.php 511

Is this a known bug? thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions