Merge pull request #25670 from nextcloud/enh/psalm/redundantcasts

Fix a few RedundantCast
This commit is contained in:
Julius Härtl 2021-03-02 10:46:00 +01:00 committed by GitHub
commit 20094af7f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}
/**