mirror of
https://github.com/nextcloud/server.git
synced 2024-08-28 17:55:03 +02:00
Fix a few RedundantCast
Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
92d6abf216
commit
5cd1880daa
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user