Use array to add compacted item when expanded property is @list.
This commit is contained in:
parent
1b676e47fe
commit
42903065d9
|
@ -1609,6 +1609,7 @@ class JsonLdProcessor {
|
||||||
// array, or key is @graph
|
// array, or key is @graph
|
||||||
$is_array = ($container === '@set' || $container === '@list' ||
|
$is_array = ($container === '@set' || $container === '@list' ||
|
||||||
(is_array($compacted_item) && count($compacted_item) === 0) ||
|
(is_array($compacted_item) && count($compacted_item) === 0) ||
|
||||||
|
$expanded_property === '@list' ||
|
||||||
$expanded_property === '@graph');
|
$expanded_property === '@graph');
|
||||||
|
|
||||||
// add compact value
|
// add compact value
|
||||||
|
|
Loading…
Reference in a new issue