Merge pull request #310 from arawa/fix/309_group_displayname_is_null

fix: #309 group displayname might be null
pull/278/head^2
Thibaut 2024-12-05 10:06:49 +01:00 committed by GitHub
commit d023ffa331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ class Restriction extends Entity implements JsonSerializable {
$this->addType('allowRecording', 'boolean'); $this->addType('allowRecording', 'boolean');
} }
public function setGroupName(string $groupName) { public function setGroupName(?string $groupName) {
$this->groupName = $groupName; $this->groupName = $groupName ?? '';
} }
public function jsonSerialize(): array { public function jsonSerialize(): array {