diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-02-15 22:32:56 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-01 16:00:32 +0100 |
commit | 5cd1880daa048a685da689c7f41a2e50486494de (patch) | |
tree | 595427a61fbcd7fe50711f5f421f9af96ac2c0a3 /apps/federation | |
parent | 92d6abf216806de0d3dca5e8842ac3532c621b31 (diff) | |
download | nextcloud-server-5cd1880daa048a685da689c7f41a2e50486494de.tar.gz nextcloud-server-5cd1880daa048a685da689c7f41a2e50486494de.zip |
Fix a few RedundantCast
Reported by psalm
For #25641
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federation')
-rw-r--r-- | apps/federation/lib/DbHandler.php | 2 |
1 files changed, 1 insertions, 1 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; |