Invalid PHPDoc made me write bad code :P

This commit is contained in:
Keir Nellyer 2016-07-18 19:29:05 +01:00
parent ca835bb4c6
commit d9240e1589

View File

@ -247,10 +247,9 @@ function getInvolvedUsers($snapshot, $report)
$involvedUsers = $snapshot->getPlayers();
$involvedUsers[$report->getSuspect()->getId()] = $report->getSuspect();
/** @var UserReport $reporter */
foreach ($report->getReporters() as $reporterReason) {
$reporter = $reporterReason->getUser();
$involvedUsers[$reporter->getUser()->getId()] = $reporter;
$involvedUsers[$reporter->getId()] = $reporter;
}
return $involvedUsers;