summaryrefslogtreecommitdiffstats
path: root/lib/public/Notification
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-06-11 09:52:04 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-06-11 16:53:20 +0200
commit49d5030a532b811388c08a2340a6745255268107 (patch)
tree3a5e129b9db25e5d8f6a9ad392683ba5bd747e8f /lib/public/Notification
parent147073911fd2c4caf37c33bf4d5ae0e2727d8eba (diff)
downloadnextcloud-server-49d5030a532b811388c08a2340a6745255268107.tar.gz
nextcloud-server-49d5030a532b811388c08a2340a6745255268107.zip
Fix userid casting in notifications
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/public/Notification')
-rw-r--r--lib/public/Notification/INotification.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php
index 29f2a0e7943..f71d0c53cc8 100644
--- a/lib/public/Notification/INotification.php
+++ b/lib/public/Notification/INotification.php
@@ -1,4 +1,5 @@
<?php
+declare (strict_types = 1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -36,7 +37,7 @@ interface INotification {
* @throws \InvalidArgumentException if the app id is invalid
* @since 9.0.0
*/
- public function setApp($app);
+ public function setApp(string $app);
/**
* @return string
@@ -50,7 +51,7 @@ interface INotification {
* @throws \InvalidArgumentException if the user id is invalid
* @since 9.0.0
*/
- public function setUser($user);
+ public function setUser(string $user);
/**
* @return string