chore: adjust for now fixed strict rector changes

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-04-30 11:31:18 +02:00
parent d3031b8de5
commit 75273a67f0
No known key found for this signature in database
GPG key ID: 7E849AE05218500F

View file

@ -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 [];
}