From 75273a67f0312f411d4ae2690e81d6bd66127db5 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 30 Apr 2026 11:31:18 +0200 Subject: [PATCH] chore: adjust for now fixed strict rector changes Signed-off-by: Ferdinand Thiessen --- apps/dav/lib/Connector/Sabre/Node.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php index 799a273aaf6..b2ecf9b2f6a 100644 --- a/apps/dav/lib/Connector/Sabre/Node.php +++ b/apps/dav/lib/Connector/Sabre/Node.php @@ -28,6 +28,7 @@ use OCP\Lock\LockedException; use OCP\PreConditionNotMetException; use OCP\Server; use OCP\Share\Exceptions\ShareNotFound; +use OCP\Share\IAttributes; use OCP\Share\IManager; use RuntimeException; use Sabre\DAV\Exception; @@ -297,7 +298,7 @@ abstract class Node implements INode { $attributes = []; if ($storage->instanceOfStorage(ISharedStorage::class)) { $attributes = $storage->getShare()->getAttributes(); - if ($attributes === null) { + if (!$attributes instanceof IAttributes) { return []; }