Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bdanbury opened this issue Jan 4, 2024 · 2 comments

Comments

@bdanbury
Copy link

bdanbury commented Jan 4, 2024

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",
@DamienHarper
Copy link
Owner

Hi @bdanbury, could you please post a sample code that triggers the warning/error and the generated warning/error message?

@bdanbury
Copy link
Author

bdanbury commented Jan 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants