From 24d436cb600a725ba162a5387552a996a6fc486f Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 11 Jan 2021 12:57:03 +0100 Subject: Remove unneeded casts that were found by Psalm In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke --- apps/federatedfilesharing/lib/Notifier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/federatedfilesharing/lib') diff --git a/apps/federatedfilesharing/lib/Notifier.php b/apps/federatedfilesharing/lib/Notifier.php index bd0ca88d885..f365a14a13c 100644 --- a/apps/federatedfilesharing/lib/Notifier.php +++ b/apps/federatedfilesharing/lib/Notifier.php @@ -151,14 +151,14 @@ class Notifier implements INotifier { switch ($action->getLabel()) { case 'accept': $action->setParsedLabel( - (string)$l->t('Accept') + $l->t('Accept') ) ->setPrimary(true); break; case 'decline': $action->setParsedLabel( - (string)$l->t('Decline') + $l->t('Decline') ); break; } -- cgit v1.2.3