getUser(); \assert($user instanceof User); return $user; } } protected function assertSameSeason(Season $season, Season $subjectSeason): void { if ($season !== $subjectSeason) { throw new NotFoundHttpException(); } } #[\Override] protected function addFlash(FlashType|string $type, mixed $message): void { if ($type instanceof FlashType) { $type = $type->value; } parent::addFlash($type, $message); } }