Merge pull request #26064 from nextcloud/techdept/psalm/type_oauth_db

Add psalm annotation to the DB handlers of OAuth2
This commit is contained in:
Roeland Jago Douma 2021-03-11 16:46:08 +01:00 committed by GitHub
commit a3b1c1cea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -34,6 +34,9 @@ use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
/**
* @template-extends QBMapper<AccessToken>
*/
class AccessTokenMapper extends QBMapper {
/**
@ -74,6 +77,6 @@ class AccessTokenMapper extends QBMapper {
$qb
->delete($this->tableName)
->where($qb->expr()->eq('client_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)));
$qb->execute();
$qb->executeUpdate();
}
}

View File

@ -34,6 +34,9 @@ use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
/**
* @template-extends QBMapper<Client>
*/
class ClientMapper extends QBMapper {
/**