Skip to content

DH\Adf\Node\Block\Document::load returns a different type to what DH\Adf\Exporter\Html\Block\DocumentExporter expects #7

@bdanbury

Description

@bdanbury

Per the documentation: a root node is mapped to DH\Adf\Node\Block\Document class and its exporter class is DH\Adf\Exporter\Html\Block\DocumentExporter

However, when using DH\Adf\Node\Block\Document::load with a JSON object, the DH\Adf\Node\Block\Document::load member returns type of DH\Adf\Node\BlockNode while DH\Adf\Exporter\Html\Block\DocumentExporter expects type of DH\Adf\Node\Block\Document.

Is there a way to coerce the types to remove this warning?

"name": "damienharper/adf-tools",
"version": "1.0.0",

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