Fix a few RedundantCast

Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/25670/head
Roeland Jago Douma 5 years ago
parent 92d6abf216
commit 5cd1880daa
  1. 2
      apps/federation/lib/DbHandler.php
  2. 2
      apps/files_external/lib/Service/DBConfigService.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;

@ -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…
Cancel
Save