From 40500e8d42f8f6fa0e4fdb0651c16dce1993dff3 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 23 Jul 2026 13:36:49 +0200 Subject: [PATCH] fix(Sharing): Remove faulty check if required properties have a default value Signed-off-by: provokateurin --- lib/private/Sharing/SharingRegistry.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/private/Sharing/SharingRegistry.php b/lib/private/Sharing/SharingRegistry.php index 3ee949fb1ddfa..333beb3b2b2f6 100644 --- a/lib/private/Sharing/SharingRegistry.php +++ b/lib/private/Sharing/SharingRegistry.php @@ -175,10 +175,6 @@ public function getPropertyTypeCompatibleRecipientTypes(): array { public function registerPropertyType(ISharePropertyType $propertyType): void { $class = $propertyType::class; - if ($propertyType->isRequired() && $propertyType->getDefaultValue() === null) { - throw new RuntimeException('Share property type ' . $class . ' is required, but has no default value.'); - } - if (isset($this->propertyTypes[$class])) { throw new RuntimeException('Share property type ' . $class . ' is already registered'); }