Fix a few RedundantCast

Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-02-15 22:32:56 +01:00
parent 92d6abf216
commit 5cd1880daa
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();
}
/**