diff --git a/src/Metadata/XmpFormat.php b/src/Metadata/XmpFormat.php index 7f444de..a373ac8 100644 --- a/src/Metadata/XmpFormat.php +++ b/src/Metadata/XmpFormat.php @@ -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; }