mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
allow null values for private comment
This commit is contained in:
@@ -54,9 +54,9 @@ class PrivateCommentEmbeddable
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user