From e6ab4d9be924861ba9ac82eaf98d559aa6fa7cb7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 12 Aug 2021 14:00:54 +0200 Subject: [PATCH] Fixes "PHP Warning: key() expects parameter 1 to be array, string given" --- 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 fa169c0046..e06d3b9e29 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_int(key($array[$element]))) { + if (!is_array($array[$element])) { $array[$element] = [$array[$element]]; }