aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-06-21 16:03:45 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-06-21 16:17:52 +0200
commit1bd5222224bac9b8f1037c992367c9af85a9ec5a (patch)
tree2a36b991633734a0738a415c266bcdfeb290c58a /lib/private/Files
parentdbc2c2325ea194b4588515e5fad988b7ab9bcf3f (diff)
downloadnextcloud-server-1bd5222224bac9b8f1037c992367c9af85a9ec5a.tar.gz
nextcloud-server-1bd5222224bac9b8f1037c992367c9af85a9ec5a.zip
Fix PHP 8.2 warnings about undeclared properties
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Node/File.php1
-rw-r--r--lib/private/Files/Node/Folder.php1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/private/Files/Node/File.php b/lib/private/Files/Node/File.php
index e125715e6a8..d8a6741dc6e 100644
--- a/lib/private/Files/Node/File.php
+++ b/lib/private/Files/Node/File.php
@@ -131,7 +131,6 @@ class File extends Node implements \OCP\Files\File {
$this->view->unlink($this->path);
$nonExisting = new NonExistingFile($this->root, $this->view, $this->path, $fileInfo);
$this->sendHooks(['postDelete'], [$nonExisting]);
- $this->exists = false;
$this->fileInfo = null;
} else {
throw new NotPermittedException();
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index 9c15f0edf41..b56b7e0f851 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -388,7 +388,6 @@ class Folder extends Node implements \OCP\Files\Folder {
$this->view->rmdir($this->path);
$nonExisting = new NonExistingFolder($this->root, $this->view, $this->path, $fileInfo);
$this->sendHooks(['postDelete'], [$nonExisting]);
- $this->exists = false;
} else {
throw new NotPermittedException('No delete permission for path');
}