Add psalm annotation to the DB handlers of OAuth2
* Psalm annotations * To new executeUpdate Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d090f970dd
commit
c2f7c417b2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue