Update minor things.

This commit is contained in:
Pol Dellaiera 2022-01-25 12:19:14 +01:00
parent 7ee554b48d
commit eb9cc0b63f
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -595,10 +595,12 @@ class AccompanyingPeriod implements
*/
public function getComments(): Collection
{
$pinnedComment = $this->pinnedComment;
return $this
->comments
->filter(
static fn (Comment $c): bool => $c !== $this->pinnedComment
static fn (Comment $c): bool => $c !== $pinnedComment
);
}