Skip to content

Commit d954477

Browse files
fix: problems
1 parent 41533d1 commit d954477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser/EditorjsParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class EditorjsParser
2727
/** @var array<string, EditorjsParserExtension> */
2828
private array $parser = [];
2929

30-
public function __construct(array $data)
30+
public function __construct(object $data)
3131
{
32-
$this->data = (object) $data;
32+
$this->data = $data;
3333

3434
$this->dom = new DOMDocument(1.0, 'UTF-8');
3535

0 commit comments

Comments
 (0)