Merge pull request #49518 from nextcloud/bugfix/noid/activity-logs

fix(activity): Fix activity object type warnings
pull/49527/head
Joas Schilling 2024-11-27 13:16:46 +07:00 committed by GitHub
commit 6230849e46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

@ -129,7 +129,7 @@ class Provider implements IProvider {
return [
'token' => [
'type' => 'highlight',
'id' => $event->getObjectId(),
'id' => (string)$event->getObjectId(),
'name' => $parameters['name'],
]
];
@ -137,12 +137,12 @@ class Provider implements IProvider {
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'],
]
];

@ -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<string, list<numeric|string>|numeric|string>
* @throws ProcessingException
*@since 30.0.0
* @since 30.0.0
*/
public function process(?string $userId, array $input, callable $reportProgress): array;
}