From 5cd1880daa048a685da689c7f41a2e50486494de Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 15 Feb 2021 22:32:56 +0100 Subject: Fix a few RedundantCast Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma --- apps/federation/lib/DbHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/federation') 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; -- cgit v1.2.3