From c3586cb51aa4ac51725fcc54acb56a334f3205a6 Mon Sep 17 00:00:00 2001 From: Art4 Date: Sat, 7 Dec 2024 15:23:38 +0000 Subject: [PATCH] Fix errors in Worker namespace --- src/Worker/ContactDiscoveryForUser.php | 1 - src/Worker/Notifier.php | 2 ++ src/Worker/UpdateServerPeers.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Worker/ContactDiscoveryForUser.php b/src/Worker/ContactDiscoveryForUser.php index 9fc71b3223..22eb053df6 100644 --- a/src/Worker/ContactDiscoveryForUser.php +++ b/src/Worker/ContactDiscoveryForUser.php @@ -13,7 +13,6 @@ class ContactDiscoveryForUser { /** * Discover contact relations - * @param string $url */ public static function execute(int $uid) { diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 42868e4e0e..7681daf4a5 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -7,6 +7,7 @@ namespace Friendica\Worker; +use Exception; use Friendica\Core\Hook; use Friendica\Core\Logger; use Friendica\Core\Protocol; @@ -21,6 +22,7 @@ use Friendica\Model\Item; use Friendica\Model\Post; use Friendica\Model\Tag; use Friendica\Model\User; +use Friendica\Network\HTTPException\InternalServerErrorException; use Friendica\Protocol\Activity; use Friendica\Protocol\ActivityPub; use Friendica\Protocol\ActivityPub\Transmitter; diff --git a/src/Worker/UpdateServerPeers.php b/src/Worker/UpdateServerPeers.php index 9c5cce731b..94e04a240d 100644 --- a/src/Worker/UpdateServerPeers.php +++ b/src/Worker/UpdateServerPeers.php @@ -23,7 +23,7 @@ class UpdateServerPeers /** * Query the given server for their known peers * - * @param string $gserver Server URL + * @param string $url Server URL * @return void */ public static function execute(string $url)