From 563e90e71a61ca94118a32fc130b1a0762aeaa14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacio=20Mu=C3=B1oz=20Fernandez?= Date: Wed, 3 Aug 2022 19:54:44 +0200 Subject: [PATCH] Fix for JsonLD Reader not detecting when @type was an Array --- src/Reader/JsonLdReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Reader/JsonLdReader.php b/src/Reader/JsonLdReader.php index e0e42ef..46591f0 100644 --- a/src/Reader/JsonLdReader.php +++ b/src/Reader/JsonLdReader.php @@ -150,7 +150,7 @@ private function readItem(stdClass $item, string $url, ?string $vocabulary) : It } elseif (is_array($type)) { $types = array_map(function($type) use ($vocabulary) { return is_string($type) ? $this->resolveTerm($type, $vocabulary) : null; - }, $types); + }, $type); $types = array_filter($types); $types = array_values($types);