From d339e0dfd6633d407b3a09d71d91d1ee08fe1d7c Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 10 Sep 2024 12:06:00 +0200 Subject: [PATCH] fix(ACL): Actually return in ACLStorageWrapper methods Signed-off-by: provokateurin --- lib/ACL/ACLStorageWrapper.php | 4 ++-- tests/psalm-baseline.xml | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/ACL/ACLStorageWrapper.php b/lib/ACL/ACLStorageWrapper.php index 7dd3f8cfb..b80948a85 100644 --- a/lib/ACL/ACLStorageWrapper.php +++ b/lib/ACL/ACLStorageWrapper.php @@ -238,7 +238,7 @@ public function filemtime($path) { if (!$this->checkPermissions($path, Constants::PERMISSION_READ)) { return false; } - parent::filemtime($path); + return parent::filemtime($path); } public function file_get_contents($path) { @@ -259,7 +259,7 @@ public function hash($type, $path, $raw = false) { if (!$this->checkPermissions($path, Constants::PERMISSION_READ)) { return false; } - parent::hash($type, $path, $raw); + return parent::hash($type, $path, $raw); } public function getETag($path) { diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 63b8ea0a4..5ba587881 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,12 +1,8 @@ - + - - filemtime - hash - - IteratorDirectory +