aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-03-02 10:46:00 +0100
committerGitHub <noreply@github.com>2021-03-02 10:46:00 +0100
commit20094af7f9f95914a93bf26cc7ee753504f60afd (patch)
treec3c2025c374ab7290536da01677c9acd8ab8d110 /apps
parent2b97f0fade9d0592897e61d2b87a6fd832f2c650 (diff)
parent5cd1880daa048a685da689c7f41a2e50486494de (diff)
downloadnextcloud-server-20094af7f9f95914a93bf26cc7ee753504f60afd.tar.gz
nextcloud-server-20094af7f9f95914a93bf26cc7ee753504f60afd.zip
Merge pull request #25670 from nextcloud/enh/psalm/redundantcasts
Fix a few RedundantCast
Diffstat (limited to 'apps')
-rw-r--r--apps/federation/lib/DbHandler.php2
-rw-r--r--apps/files_external/lib/Service/DBConfigService.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/federation/lib/DbHandler.php b/apps/federation/lib/DbHandler.php
index 5499b4547b6..ebff671c21a 100644
--- a/apps/federation/lib/DbHandler.php
+++ b/apps/federation/lib/DbHandler.php
@@ -87,7 +87,7 @@ class DbHandler {
$result = $query->execute();
if ($result) {
- return (int)$this->connection->lastInsertId('*PREFIX*'.$this->dbTable);
+ return $query->getLastInsertId();
}
$message = 'Internal failure, Could not add trusted server: ' . $url;
diff --git a/apps/files_external/lib/Service/DBConfigService.php b/apps/files_external/lib/Service/DBConfigService.php
index 619cd4d71ab..3530b0fa4fc 100644
--- a/apps/files_external/lib/Service/DBConfigService.php
+++ b/apps/files_external/lib/Service/DBConfigService.php
@@ -267,7 +267,7 @@ class DBConfigService {
'type' => $builder->createNamedParameter($type, IQueryBuilder::PARAM_INT)
]);
$query->execute();
- return (int)$this->connection->lastInsertId('*PREFIX*external_mounts');
+ return $query->getLastInsertId();
}
/**