From b18d1da3631e593a7c345a910f49f2865a0ab265 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 13 Nov 2021 17:01:21 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: ZipArchive::setCommentName(): Argument #2 ($comment) must be of type string, array given --- api/src/Vfs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 5ad033ff85..291407118a 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -1482,7 +1482,7 @@ class Vfs extends Vfs\Base $comment = self::find_prop($props,'comment'); if($comment) { - $zip->setCommentName($_name, $comment); + $zip->setCommentName($_name, $comment['val']); } } unset($props);