Skip to content

Commit

Permalink
Merge branch 'release-54.16.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 10, 2024
2 parents 99cf559 + 7152e45 commit 17a6ccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions actions/class.RdfController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,13 @@ private function getResourceTransfer(): ResourceTransferInterface

private function getResourceParentClass(string $id): string
{
if ($this->getResource($id)->isClass()) {
$directParent = $this->getResource($id)->getParentClassesIds();
return reset($directParent);
}

$types = $this->getResource($id)->getTypes();

if (count($types) !== 1) {
throw new InvalidArgumentException('Resource has no class or resource types are ambiguous');
}
Expand Down

0 comments on commit 17a6ccc

Please sign in to comment.