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);