mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
allow null values for private comment
This commit is contained in:
parent
7fb0e44307
commit
679d19e2a1
@ -54,9 +54,9 @@ class PrivateCommentEmbeddable
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setCommentForUser(User $user, string $content): self
|
public function setCommentForUser(User $user, ?string $content): self
|
||||||
{
|
{
|
||||||
$this->comments[$user->getId()] = trim($content);
|
$this->comments[$user->getId()] = trim((string) $content);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user