Skip to content

Commit

Permalink
Replacing deprecated constant
Browse files Browse the repository at this point in the history
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
  • Loading branch information
FedericoHeichou authored Aug 24, 2023
1 parent b5f21ef commit 83449b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files/lib/BackgroundJob/ScanFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
+use OCP\ILogger;

Check failure on line 33 in apps/files/lib/BackgroundJob/ScanFiles.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

ParseError

apps/files/lib/BackgroundJob/ScanFiles.php:33:2: ParseError: Syntax error, unexpected T_USE on line 33 (see https://psalm.dev/173)

Check failure

Code scanning / Psalm

ParseError Error

Syntax error, unexpected T_USE on line 33
use OCP\IDBConnection;
use Psr\Log\LoggerInterface;

Expand Down Expand Up @@ -119,7 +120,7 @@ protected function run($argument) {
$usersScanned[] = $storageUsers[$scanningStrageId];
}

if ($this->config->getSystemValue('loglevel') > \OC\Log::WARN) {
if ($this->config->getSystemValue('loglevel') > ILogger::WARN) {

Check notice

Code scanning / Psalm

DeprecatedClass Note

Class OCP\ILogger is deprecated
return;
}

Expand Down

0 comments on commit 83449b5

Please sign in to comment.