Merge pull request #25670 from nextcloud/enh/psalm/redundantcasts
Fix a few RedundantCast
This commit is contained in:
commit
20094af7f9
|
@ -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