diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-01 21:13:41 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-10 16:37:42 +0200 |
commit | f7246a9b7a782412d9d818383e95b9920547af62 (patch) | |
tree | dbc589739e7fc6860d0f3b3f705f56efc0c407f1 | |
parent | d0a827a68430cf716f098b0238a150c2fd9e4c83 (diff) | |
download | nextcloud-server-f7246a9b7a782412d9d818383e95b9920547af62.tar.gz nextcloud-server-f7246a9b7a782412d9d818383e95b9920547af62.zip |
fix(INotification): Restrict rich object parameters type
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r-- | apps/files_sharing/lib/Notification/Notifier.php | 4 | ||||
-rw-r--r-- | lib/public/Notification/INotification.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php index dd09fb6e20e..2609f99e691 100644 --- a/apps/files_sharing/lib/Notification/Notifier.php +++ b/apps/files_sharing/lib/Notification/Notifier.php @@ -126,9 +126,9 @@ class Notifier implements INotifier { [ 'node' => [ 'type' => 'file', - 'id' => $node->getId(), + 'id' => (string)$node->getId(), 'name' => $node->getName(), - 'path' => $path, + 'path' => (string)$path, ], ] ); diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php index 28d2d6bff5a..4a35ee59087 100644 --- a/lib/public/Notification/INotification.php +++ b/lib/public/Notification/INotification.php @@ -137,7 +137,7 @@ interface INotification { * See https://github.com/nextcloud/server/issues/1706 for more information. * * @param string $subject - * @param array $parameters + * @param array<string, array<string, string>> $parameters * @return $this * @throws InvalidValueException if the subject or parameters are invalid * @since 11.0.0 @@ -213,7 +213,7 @@ interface INotification { * See https://github.com/nextcloud/server/issues/1706 for more information. * * @param string $message - * @param array $parameters + * @param array<string, array<string, string>> $parameters * @return $this * @throws InvalidValueException if the message or parameters are invalid * @since 11.0.0 |