Are the tests happy?

This commit is contained in:
Michael Vogel 2021-08-12 15:12:41 +02:00
parent e6ab4d9be9
commit f7f79a240a

View file

@ -193,7 +193,7 @@ class JsonLD
}
// If it isn't an array yet, make it to one
if (!is_array($array[$element])) {
if (!is_array($array[$element]) || !is_int(key($array[$element]))) {
$array[$element] = [$array[$element]];
}