Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
  • Loading branch information
Altahrim committed Oct 29, 2024
1 parent 2895767 commit e1b8822
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/private/User/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,11 @@ public function getLastLoggedInUsers(?int $limit = null, int $offset = 0, string
->from('preferences', 'pref_login')
->where($queryBuilder->expr()->eq('pref_login.appid', $queryBuilder->expr()->literal('login')))
->andWhere($queryBuilder->expr()->eq('pref_login.configkey', $queryBuilder->expr()->literal('lastLogin')))
->setFirstResult($offset)
->setMaxResults($limit)
//->setFirstResult($offset)
//->setMaxResults($limit)
;
var_dump($queryBuilder->executeQuery()->fetchAll(\PDO::FETCH_COLUMN));

Check failure on line 764 in lib/private/User/Manager.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

ForbiddenCode

lib/private/User/Manager.php:764:3: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)
exit;

// Oracle don't want to run ORDER BY on CLOB column
$loginOrder = $connection->getDatabasePlatform() instanceof OraclePlatform
Expand Down

0 comments on commit e1b8822

Please sign in to comment.