Skip to content

Commit

Permalink
Fix type error on metadata key field
Browse files Browse the repository at this point in the history
  • Loading branch information
ipf committed Jul 5, 2021
1 parent 4b57e97 commit 5b35250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/PresentationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ private function getMetadata(\Subugoe\IIIFModel\Model\Document $document): array
if (!empty($value)) {
$data = new Metadata();
$data
->setLabel($key)
->setLabel((string) $key)
->setValue($value);
$metadata[] = $data;
}
Expand Down

0 comments on commit 5b35250

Please sign in to comment.