diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-04 14:44:04 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-04 14:44:04 +0100 |
commit | c3f1eb4f7f2cdbee265b39ccc8096f27a4357c4e (patch) | |
tree | c7e62b7c533f6acd3c2a70cc095b283840cf290f /lib/private/DB/QueryBuilder | |
parent | 3bbacb2f541a513f47e0744ab8a629b936a091d8 (diff) | |
download | nextcloud-server-c3f1eb4f7f2cdbee265b39ccc8096f27a4357c4e.tar.gz nextcloud-server-c3f1eb4f7f2cdbee265b39ccc8096f27a4357c4e.zip |
Remove Redundantcasts
For #25839
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/DB/QueryBuilder')
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php index aa0327e89d9..35b7240abfe 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -1234,11 +1234,11 @@ class QueryBuilder implements IQueryBuilder { * @return int * @throws \BadMethodCallException When being called before an insert query has been run. */ - public function getLastInsertId() { + public function getLastInsertId(): int { if ($this->getType() === \Doctrine\DBAL\Query\QueryBuilder::INSERT && $this->lastInsertedTable) { // lastInsertId() needs the prefix but no quotes $table = $this->prefixTableName($this->lastInsertedTable); - return (int) $this->connection->lastInsertId($table); + return $this->connection->lastInsertId($table); } throw new \BadMethodCallException('Invalid call to getLastInsertId without using insert() before.'); |