diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-02 18:52:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 18:52:44 +0100 |
commit | 04dc321ee732afb95dee8ddc226fd3dc0bd9fd64 (patch) | |
tree | 80d77bcd39eccbe20e0eaabe31dad3a0afca4c19 /apps/federatedfilesharing | |
parent | 15f00dfa74e6a8f85dc815990eee62ddb481a2ff (diff) | |
parent | 4f37e0ce55e9e837c9ef6910ba7ca52d522400f6 (diff) | |
download | nextcloud-server-04dc321ee732afb95dee8ddc226fd3dc0bd9fd64.tar.gz nextcloud-server-04dc321ee732afb95dee8ddc226fd3dc0bd9fd64.zip |
Merge pull request #25884 from nextcloud/techdept/psalm/no_cast
Remove redundant casts
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php index 0bd0287f606..63877f3307c 100644 --- a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php +++ b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php @@ -258,7 +258,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider { ->setType('remote_share') ->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_RECEIVED, [$ownerFederatedId, trim($name, '/')]) ->setAffectedUser($shareWith) - ->setObject('remote_share', (int)$shareId, $name); + ->setObject('remote_share', $shareId, $name); \OC::$server->getActivityManager()->publish($event); $this->notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name); } else { @@ -269,7 +269,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider { ->setType('remote_share') ->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_RECEIVED, [$ownerFederatedId, trim($name, '/')]) ->setAffectedUser($user->getUID()) - ->setObject('remote_share', (int)$shareId, $name); + ->setObject('remote_share', $shareId, $name); \OC::$server->getActivityManager()->publish($event); $this->notifyAboutNewShare($user->getUID(), $shareId, $ownerFederatedId, $sharedByFederatedId, $name); } |