diff --git a/apps/files_versions/lib/Command/CleanUp.php b/apps/files_versions/lib/Command/CleanUp.php index 2a19c57710ed8..519b3689a58da 100644 --- a/apps/files_versions/lib/Command/CleanUp.php +++ b/apps/files_versions/lib/Command/CleanUp.php @@ -115,7 +115,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int /** * delete versions for the given user */ - protected function deleteVersions(string $user, string $path = null): void { + protected function deleteVersions(string $user, ?string $path = null): void { \OC_Util::tearDownFS(); \OC_Util::setupFS($user); diff --git a/apps/files_versions/lib/Command/Expire.php b/apps/files_versions/lib/Command/Expire.php index 3744df10093b6..688a6e869e945 100644 --- a/apps/files_versions/lib/Command/Expire.php +++ b/apps/files_versions/lib/Command/Expire.php @@ -53,7 +53,6 @@ public function handle(): void { // In case of external storage and session credentials, the expiration // fails because the command does not have those credentials - /** @var LoggerInterface $logger */ $logger = \OC::$server->get(LoggerInterface::class); $logger->warning($e->getMessage(), [ 'exception' => $e,