diff --git a/src/Reader/JsonLdReader.php b/src/Reader/JsonLdReader.php index 3f5672b..83d76c1 100644 --- a/src/Reader/JsonLdReader.php +++ b/src/Reader/JsonLdReader.php @@ -161,8 +161,8 @@ private function readItem(stdClass $item, string $url, ?string $vocabulary): Ite $types = [$type]; } elseif (is_array($type)) { $types = array_map( - fn ($type) => is_string($type) ? $this->resolveTerm($type, $vocabulary) : null, - $types, + fn ($t) => is_string($t) ? $this->resolveTerm($t, $vocabulary) : null, + $type, ); $types = array_filter($types);