From 0afb5a185996069ca2a36d445039fb28367d1a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Wed, 12 Jun 2024 16:57:55 +0200 Subject: [PATCH] Ensure string type --- src/Metadata/XmpFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }