Skip to content

Commit 10fdbee

Browse files
committed
fix(Sharing): Remove faulty check if required properties have a default value
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 182e403 commit 10fdbee

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/private/Sharing/SharingRegistry.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ public function getPropertyTypeCompatibleRecipientTypes(): array {
175175
public function registerPropertyType(ISharePropertyType $propertyType): void {
176176
$class = $propertyType::class;
177177

178-
if ($propertyType->isRequired() && $propertyType->getDefaultValue() === null) {
179-
throw new RuntimeException('Share property type ' . $class . ' is required, but has no default value.');
180-
}
181-
182178
if (isset($this->propertyTypes[$class])) {
183179
throw new RuntimeException('Share property type ' . $class . ' is already registered');
184180
}

0 commit comments

Comments
 (0)