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) {