Merge branch 'master' of gitlab.com:chill-projet/chill-bundles

This commit is contained in:
2022-06-01 11:05:17 +02:00
10 changed files with 204 additions and 23 deletions

View File

@@ -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;
}