Merge pull request #9880 from annando/non-numeric
Avoid non numeric parameter
This commit is contained in:
commit
dda99c2595
2 changed files with 2 additions and 2 deletions
|
@ -1353,7 +1353,7 @@ class User
|
||||||
*/
|
*/
|
||||||
public static function remove(int $uid)
|
public static function remove(int $uid)
|
||||||
{
|
{
|
||||||
if (!$uid) {
|
if (empty($uid)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ use Friendica\Protocol\Salmon;
|
||||||
|
|
||||||
class Notifier
|
class Notifier
|
||||||
{
|
{
|
||||||
public static function execute($cmd, $target_id)
|
public static function execute(string $cmd, int $target_id)
|
||||||
{
|
{
|
||||||
$a = DI::app();
|
$a = DI::app();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue