Skip to content

Commit 891ec2a

Browse files
committed
Fix PHPStan errors
1 parent 6b42434 commit 891ec2a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

webapp/src/Controller/API/JudgehostController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ public function addGenericTaskOutput(
599599
$genericTask->setOutput($genericTaskOutput);
600600
$this->em->persist($genericTask);
601601
$this->em->persist($genericTaskOutput);
602-
} elseif (count($genercTasks) !== 1) {
602+
} elseif (count($genericTask) !== 1) {
603603
throw new BadRequestHttpException("There should be only one generic task for this judgetask.");
604604
} else {
605605
$genericTask = $genericTask->first();

webapp/src/Entity/GenericTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class GenericTask extends BaseApiEntity
6060
private string|float|null $startTime = null;
6161

6262
/**
63-
* @var Collection<int, JudgingRunOutput>
63+
* @var Collection<int, GenericTaskOutput>
6464
*
6565
* We use a OneToMany instead of a OneToOne here, because otherwise this
6666
* relation will always be loaded. See the commit message of commit

webapp/src/Entity/JudgeTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function getJudgingRuns(): Collection
383383
return $this->judging_runs;
384384
}
385385

386-
public function addGenericTask(GenericTask $genericTask): GenericTask
386+
public function addGenericTask(GenericTask $genericTask): JudgeTask
387387
{
388388
$this->generic_tasks[] = $genericTask;
389389
return $this;

0 commit comments

Comments
 (0)