[AUTOGENERATED] Update autogenerated code

This commit is contained in:
2021-12-26 21:32:09 +00:00
committed by Diogo Peralta Cordeiro
parent 0df423e84b
commit 93276ce8d0
35 changed files with 131 additions and 131 deletions

View File

@@ -47,7 +47,7 @@ class Notification extends Entity
// @codeCoverageIgnoreStart
private int $activity_id;
private int $target_id;
private ?string $reason;
private ?string $reason = null;
private DateTimeInterface $created;
private DateTimeInterface $modified;
@@ -75,7 +75,7 @@ class Notification extends Entity
public function setReason(?string $reason): self
{
$this->reason = mb_substr($reason, 0, 191);
$this->reason = \is_null($reason) ? null : mb_substr($reason, 0, 191);
return $this;
}

View File

@@ -40,7 +40,7 @@ class UserNotificationPrefs extends Entity
// @codeCoverageIgnoreStart
private int $user_id;
private string $transport;
private ?int $target_actor_id;
private ?int $target_actor_id = null;
private bool $activity_by_subscribed = true;
private bool $mention = true;
private bool $reply = true;
@@ -49,7 +49,7 @@ class UserNotificationPrefs extends Entity
private bool $nudge = false;
private bool $dm = true;
private bool $post_on_status_change = false;
private ?bool $enable_posting;
private ?bool $enable_posting = true;
private DateTimeInterface $created;
private DateTimeInterface $modified;