This commit is contained in:
2024-06-11 16:58:33 +02:00
parent 9ec4c77fb7
commit 0bfb3de465
5 changed files with 9 additions and 11 deletions

View File

@@ -1514,7 +1514,7 @@ class AccompanyingPeriod implements
public function getCurrentUserHistory(): ?UserHistory
{
return $this->getUserHistories()->findFirst(fn (int $key, UserHistory $userHistory) => $userHistory->getEndDate() === null);
return $this->getUserHistories()->findFirst(fn (int $key, UserHistory $userHistory) => null === $userHistory->getEndDate());
}
private function addStepHistory(AccompanyingPeriodStepHistory $stepHistory, array $context = []): self