Skip to content

Commit e5ae22b

Browse files
committed
fix: rector and psalm
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
1 parent 3525cf2 commit e5ae22b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/Db/Row2Mapper.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ private function getMetaFilterExpression(IQueryBuilder $qb, int $columnId, strin
604604
/**
605605
* Helper method to use notILike if available, otherwise fall back to not(iLike(...))
606606
*/
607-
private function notILike(IQueryBuilder $qb, string $column, $parameter): string {
607+
private function notILike(IQueryBuilder $qb, string $column, \OCP\DB\QueryBuilder\IParameter $parameter): string {
608608
$expr = $qb->expr();
609609
// Nextcloud v35 introduced shortcut method
610610
if (method_exists($expr, 'notILike')) {

‎lib/Db/RowSleeveMapper.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function countRowsByTableIds(array $tableIds): array {
147147
$qb->setParameter('tableIds', $chunk, IQueryBuilder::PARAM_INT_ARRAY);
148148
try {
149149
$result = $qb->executeQuery();
150-
while ($row = $result->fetch()) {
150+
while ($row = $result->fetchAssociative()) {
151151
$counts[(int)$row['table_id']] = (int)$row['counter'];
152152
}
153153
$result->closeCursor();

0 commit comments

Comments
 (0)