From 916e050bb59de7a905017261c5e9771ecd37b2f7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 27 Nov 2024 10:54:15 +0100 Subject: [PATCH] fix(activity): Fix activity object type warnings Signed-off-by: Joas Schilling --- apps/settings/lib/Activity/Provider.php | 6 +++--- lib/public/TaskProcessing/ISynchronousProvider.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/settings/lib/Activity/Provider.php b/apps/settings/lib/Activity/Provider.php index ab9a8e3c85c32..1e139484f238b 100644 --- a/apps/settings/lib/Activity/Provider.php +++ b/apps/settings/lib/Activity/Provider.php @@ -142,7 +142,7 @@ protected function getParameters(IEvent $event): array { return [ 'token' => [ 'type' => 'highlight', - 'id' => $event->getObjectId(), + 'id' => (string)$event->getObjectId(), 'name' => $parameters['name'], ] ]; @@ -150,12 +150,12 @@ protected function getParameters(IEvent $event): array { return [ 'token' => [ 'type' => 'highlight', - 'id' => $event->getObjectId(), + 'id' => (string)$event->getObjectId(), 'name' => $parameters['name'], ], 'newToken' => [ 'type' => 'highlight', - 'id' => $event->getObjectId(), + 'id' => (string)$event->getObjectId(), 'name' => $parameters['newName'], ] ]; diff --git a/lib/public/TaskProcessing/ISynchronousProvider.php b/lib/public/TaskProcessing/ISynchronousProvider.php index 8cd504af189a8..d7e42684df51e 100644 --- a/lib/public/TaskProcessing/ISynchronousProvider.php +++ b/lib/public/TaskProcessing/ISynchronousProvider.php @@ -28,7 +28,7 @@ interface ISynchronousProvider extends IProvider { * @param callable(float):bool $reportProgress Report the task progress. If this returns false, that means the task was cancelled and processing should be stopped. * @psalm-return array|numeric|string> * @throws ProcessingException - *@since 30.0.0 + * @since 30.0.0 */ public function process(?string $userId, array $input, callable $reportProgress): array; }