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 bcd3764 commit 2d1ead5Copy full SHA for 2d1ead5
src/Helper.php
@@ -45,7 +45,11 @@ public static function domNodeToArray($node): array|string
45
$output = is_string($v) ? $v : implode(',', $v);
46
}
47
48
- if ($node->attributes !== null && $node->attributes->length > 0 && !is_array($output)) { // has attributes but isn't an array
+ if (
49
+ $node->attributes !== null
50
+ && $node->attributes->length > 0
51
+ && !is_array($output)
52
+ ) { // has attributes but isn't an array
53
$output = ['@content' => $output]; // change output into an array.
54
55
if (is_array($output)) {
0 commit comments