Skip to content

Commit 9fd412d

Browse files
committed
Node attribute issue
1 parent 3eb4917 commit 9fd412d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": "~7.2",
25+
"php": ">=7.2",
2626
"marc-mabe/php-enum": "^4.4"
2727
},
2828
"require-dev": {

src/Model/Option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function renderMark(MarkType $markType, string $text): string
5757
function renderNode(string $nodeType, object $node, string $innerHtml): string
5858
{
5959
$resultString = "";
60-
$attrs = get_object_vars($node->attrs);
60+
$attrs = get_object_vars((object)$node->attrs);
6161
switch ($nodeType)
6262
{
6363
case NodeType::get(NodeType::PARAGRAPH)->getValue():

0 commit comments

Comments
 (0)