Skip to content

Commit 75273a6

Browse files
committed
chore: adjust for now fixed strict rector changes
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent d3031b8 commit 75273a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/dav/lib/Connector/Sabre/Node.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use OCP\PreConditionNotMetException;
2929
use OCP\Server;
3030
use OCP\Share\Exceptions\ShareNotFound;
31+
use OCP\Share\IAttributes;
3132
use OCP\Share\IManager;
3233
use RuntimeException;
3334
use Sabre\DAV\Exception;
@@ -297,7 +298,7 @@ public function getShareAttributes(): array {
297298
$attributes = [];
298299
if ($storage->instanceOfStorage(ISharedStorage::class)) {
299300
$attributes = $storage->getShare()->getAttributes();
300-
if ($attributes === null) {
301+
if (!$attributes instanceof IAttributes) {
301302
return [];
302303
}
303304

0 commit comments

Comments
 (0)