From: Michael Date: Fri, 29 Jan 2021 23:41:42 +0000 (+0000) Subject: Avoid non numeric parameter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=722083f9ed206d90c7a7bf6e2124331d1f8cabe3;p=friendica.git Avoid non numeric parameter --- diff --git a/src/Model/User.php b/src/Model/User.php index 41e612ac80..7204fd0ac8 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -1353,7 +1353,7 @@ class User */ public static function remove(int $uid) { - if (!$uid) { + if (empty($uid)) { return false; } diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 36081455ca..4044e3769a 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -53,7 +53,7 @@ use Friendica\Protocol\Salmon; class Notifier { - public static function execute($cmd, $target_id) + public static function execute(string $cmd, int $target_id) { $a = DI::app();