summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/FederatedShareProvider.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-20 13:29:36 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-08 16:03:24 +0100
commitf68f67f354a163574c56b55245d3473ebba79cea (patch)
tree7d61403ce2a8ff410e26d72631d67d5b1d07aac4 /apps/federatedfilesharing/lib/FederatedShareProvider.php
parentfda6ffc866cf8c5d3579fe95d1731ab747894002 (diff)
downloadnextcloud-server-f68f67f354a163574c56b55245d3473ebba79cea.tar.gz
nextcloud-server-f68f67f354a163574c56b55245d3473ebba79cea.zip
Move remoteId of remote reshares to string
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/federatedfilesharing/lib/FederatedShareProvider.php')
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index 395d34cc7e5..ffd76784bc3 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -462,7 +462,7 @@ class FederatedShareProvider implements IShareProvider {
* @param $shareId
* @param $remoteId
*/
- public function storeRemoteId($shareId, $remoteId) {
+ public function storeRemoteId(int $shareId, string $remoteId): void {
$query = $this->dbConnection->getQueryBuilder();
$query->insert('federated_reshares')
->values(
@@ -478,10 +478,10 @@ class FederatedShareProvider implements IShareProvider {
* get share ID on remote server for federated re-shares
*
* @param IShare $share
- * @return int
+ * @return string
* @throws ShareNotFound
*/
- public function getRemoteId(IShare $share) {
+ public function getRemoteId(IShare $share): string {
$query = $this->dbConnection->getQueryBuilder();
$query->select('remote_id')->from('federated_reshares')
->where($query->expr()->eq('share_id', $query->createNamedParameter((int)$share->getId())));