We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41533d1 commit d954477Copy full SHA for d954477
src/Parser/EditorjsParser.php
@@ -27,9 +27,9 @@ class EditorjsParser
27
/** @var array<string, EditorjsParserExtension> */
28
private array $parser = [];
29
30
- public function __construct(array $data)
+ public function __construct(object $data)
31
{
32
- $this->data = (object) $data;
+ $this->data = $data;
33
34
$this->dom = new DOMDocument(1.0, 'UTF-8');
35
0 commit comments