From f7f79a240a86268a93b6f7a56532ce17aa6637f8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 12 Aug 2021 15:12:41 +0200 Subject: [PATCH] Are the tests happy? --- src/Util/JsonLD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index e06d3b9e29..f91d84ad5c 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -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]]; }