Skip to content

Commit

Permalink
Ensure string type
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jun 12, 2024
1 parent 3915d2a commit 0afb5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metadata/XmpFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private function buildXmp(array $metadata): string

foreach ($metadata as $namespace => $attributes) {
foreach ($attributes as $attribute => $values) {
if (!$values = array_filter($values, static function ($value): bool { return '' !== $value; })) {
if (!$values = array_filter($values, static function ($value): bool { return '' !== (string) $value; })) {
continue;
}

Expand Down

0 comments on commit 0afb5a1

Please sign in to comment.