Revert "[stable16] Fix userid casting in notifications"
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
cd69e9052f
commit
ab13fe80e4
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
declare (strict_types = 1);
|
|
||||||
/**
|
/**
|
||||||
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
||||||
*
|
*
|
||||||
|
@ -134,7 +133,7 @@ class Notification implements INotification {
|
||||||
* @throws \InvalidArgumentException if the app id is invalid
|
* @throws \InvalidArgumentException if the app id is invalid
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
*/
|
*/
|
||||||
public function setApp(string $app) {
|
public function setApp($app) {
|
||||||
if (!is_string($app) || $app === '' || isset($app[32])) {
|
if (!is_string($app) || $app === '' || isset($app[32])) {
|
||||||
throw new \InvalidArgumentException('The given app name is invalid');
|
throw new \InvalidArgumentException('The given app name is invalid');
|
||||||
}
|
}
|
||||||
|
@ -156,7 +155,7 @@ class Notification implements INotification {
|
||||||
* @throws \InvalidArgumentException if the user id is invalid
|
* @throws \InvalidArgumentException if the user id is invalid
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
*/
|
*/
|
||||||
public function setUser(string $user) {
|
public function setUser($user) {
|
||||||
if (!is_string($user) || $user === '' || isset($user[64])) {
|
if (!is_string($user) || $user === '' || isset($user[64])) {
|
||||||
throw new \InvalidArgumentException('The given user id is invalid');
|
throw new \InvalidArgumentException('The given user id is invalid');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
declare (strict_types = 1);
|
|
||||||
/**
|
/**
|
||||||
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
||||||
*
|
*
|
||||||
|
@ -37,7 +36,7 @@ interface INotification {
|
||||||
* @throws \InvalidArgumentException if the app id is invalid
|
* @throws \InvalidArgumentException if the app id is invalid
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
public function setApp(string $app);
|
public function setApp($app);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -51,7 +50,7 @@ interface INotification {
|
||||||
* @throws \InvalidArgumentException if the user id is invalid
|
* @throws \InvalidArgumentException if the user id is invalid
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
public function setUser(string $user);
|
public function setUser($user);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
|
|
Loading…
Reference in New Issue