Skip to content

Commit

Permalink
fix(notifications): Fix notification parameter types
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 16, 2024
1 parent 24dc1bd commit a3dc55c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Notifier/AdminNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down

0 comments on commit a3dc55c

Please sign in to comment.