You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Context: $i is an iteration of Issues from \JiraCloud\JiraClient\IssueService.
if ($i->fields->description) {
$exporter = new DocumentExporter(Document::load([
'type' => $i->fields->description->type[0],
'content' => objectToAssocArray($i->fields->description->content)
]));
$description = $exporter->export();
}
[image: image.png]
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, theDH\Adf\Node\Block\Document::load
member returns type ofDH\Adf\Node\BlockNode
whileDH\Adf\Exporter\Html\Block\DocumentExporter
expects type ofDH\Adf\Node\Block\Document
.Is there a way to coerce the types to remove this warning?
The text was updated successfully, but these errors were encountered: