From 722083f9ed206d90c7a7bf6e2124331d1f8cabe3 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 29 Jan 2021 23:41:42 +0000 Subject: [PATCH] Avoid non numeric parameter --- src/Model/User.php | 2 +- src/Worker/Notifier.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();