Skip to content

Commit

Permalink
Merge b26dbad into ffbf91d
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarke committed Nov 28, 2019
2 parents ffbf91d + b26dbad commit 3eb18ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Micrometa/Infrastructure/Parser/JsonLD.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@ protected function parseNode(NodeInterface $node)
*
* @return array Item type
*/
protected function parseNodeType(NodeInterface $node)
protected function parseNodeType(NodeInterface $node): array
{
if ($node->isBlankNode()) {
return [];
}

/** @var Node $itemType */
return ($itemType = $node->getType()) ? [$this->vocabularyCache->expandIRI($itemType->getId())] : [];
}
Expand Down

0 comments on commit 3eb18ad

Please sign in to comment.