fix: #309 group displayname might be null

pull/310/head
Sebastien Marinier 2024-12-05 09:59:22 +01:00
parent e2c58cd791
commit 834e2a7800
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');
}
public function setGroupName(string $groupName) {
$this->groupName = $groupName;
public function setGroupName(?string $groupName) {
$this->groupName = $groupName ?? '';
}
public function jsonSerialize(): array {