From a3dc55cf47ae6a3edcdfd02c238b5cb704562999 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 16 Sep 2024 15:19:59 +0200 Subject: [PATCH] fix(notifications): Fix notification parameter types Signed-off-by: Joas Schilling --- lib/Notifier/AdminNotifications.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Notifier/AdminNotifications.php b/lib/Notifier/AdminNotifications.php index 2e0caa729..1e3785e55 100644 --- a/lib/Notifier/AdminNotifications.php +++ b/lib/Notifier/AdminNotifications.php @@ -108,9 +108,9 @@ public function prepare(INotification $notification, string $languageCode): INot ], 'item' => [ 'type' => 'file', - 'id' => $file1->getId(), + 'id' => (string)$file1->getId(), 'name' => $file1->getName(), - 'size' => $file1->getSize(), + 'size' => (string)$file1->getSize(), 'path' => $path1, 'link' => $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $file1->getId()]), 'mimetype' => $file1->getMimetype(), @@ -124,9 +124,9 @@ public function prepare(INotification $notification, string $languageCode): INot ], 'file-3' => [ 'type' => 'file', - 'id' => $file2->getId(), + 'id' => (string)$file2->getId(), 'name' => $file2->getName(), - 'size' => $file2->getSize(), + 'size' => (string)$file2->getSize(), 'path' => $path2, 'link' => $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $file2->getId()]), 'mimetype' => $file2->getMimetype(),