Merge pull request #9880 from annando/non-numeric

Avoid non numeric parameter
This commit is contained in:
Hypolite Petovan 2021-01-29 20:08:38 -05:00 committed by GitHub
commit dda99c2595
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1353,7 +1353,7 @@ class User
*/
public static function remove(int $uid)
{
if (!$uid) {
if (empty($uid)) {
return false;
}

View file

@ -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();