fix: Mark ITrashManager as optional

This is not present when files_trashbin is disabled

Signed-off-by: Carl Schwan <carlschwan@kde.org>
pull/62207/head
Carl Schwan 1 month ago
parent a91d7cf0e5
commit 9d03d0435c
No known key found for this signature in database
GPG Key ID: 02325448204E452A
  1. 2
      apps/files/lib/Command/Delete.php
  2. 1
      apps/files/lib/Command/Touch.php

@ -23,7 +23,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion;
class Delete extends Command {
public function __construct(
private readonly FileUtils $fileUtils,
private readonly ITrashManager $trashManager,
private readonly ?ITrashManager $trashManager = null,
) {
parent::__construct();
}

@ -52,7 +52,6 @@ class Touch extends Command {
$node = $this->rootFolder->newFile($fileInput);
}
if ($date) {
$mtime = $this->parseDateOption($date);
if (!$mtime) {

Loading…
Cancel
Save