DX: fix phpstan issues

This commit is contained in:
2023-07-05 22:37:51 +02:00
parent 0361743ae0
commit c19232de35
2 changed files with 6 additions and 3 deletions

View File

@@ -160,11 +160,11 @@ class Event implements HasCenterInterface, HasScopeInterface
}
/**
* @return ArrayIterator|Collection|Traversable
* @return Collection<Participation>
*/
public function getParticipations()
{
return $this->getParticipationsOrdered();
return new ArrayCollection(iterator_to_array($this->getParticipationsOrdered()));
}
/**