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();
|
$result = $query->execute();
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
return (int)$this->connection->lastInsertId('*PREFIX*'.$this->dbTable);
|
return $query->getLastInsertId();
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = 'Internal failure, Could not add trusted server: ' . $url;
|
$message = 'Internal failure, Could not add trusted server: ' . $url;
|
||||||
|
|
|
@ -267,7 +267,7 @@ class DBConfigService {
|
||||||
'type' => $builder->createNamedParameter($type, IQueryBuilder::PARAM_INT)
|
'type' => $builder->createNamedParameter($type, IQueryBuilder::PARAM_INT)
|
||||||
]);
|
]);
|
||||||
$query->execute();
|
$query->execute();
|
||||||
return (int)$this->connection->lastInsertId('*PREFIX*external_mounts');
|
return $query->getLastInsertId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue