From 9d03d0435c334bfd32e9452bae4c19f54d3d818d Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 16 Jul 2026 07:48:26 +0200 Subject: [PATCH] fix: Mark ITrashManager as optional This is not present when files_trashbin is disabled Signed-off-by: Carl Schwan --- apps/files/lib/Command/Delete.php | 2 +- apps/files/lib/Command/Touch.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/files/lib/Command/Delete.php b/apps/files/lib/Command/Delete.php index 65799a8f1d8..627b993bcce 100644 --- a/apps/files/lib/Command/Delete.php +++ b/apps/files/lib/Command/Delete.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(); } diff --git a/apps/files/lib/Command/Touch.php b/apps/files/lib/Command/Touch.php index bd0c328561f..217ce721aa4 100644 --- a/apps/files/lib/Command/Touch.php +++ b/apps/files/lib/Command/Touch.php @@ -52,7 +52,6 @@ class Touch extends Command { $node = $this->rootFolder->newFile($fileInput); } - if ($date) { $mtime = $this->parseDateOption($date); if (!$mtime) {