fix(BE): enum

This commit is contained in:
Michael 2025-04-09 10:34:16 +02:00
parent 8b3aaabbed
commit 28736e5bed

View file

@ -16,13 +16,13 @@ enum ShowRepeatType: int
} }
public static function fromValue(string $value){ public static function fromValue(int $value){
foreach (self::cases() as $case) { foreach (self::cases() as $case) {
if ($case->value === $value) { if ($case->value === $value) {
return $case; return $case;
} }
} }
throw new \InvalidArgumentException("No matching UserType found for value: $value"); throw new \InvalidArgumentException("No matching ShowRepeatType found for value: $value");
} }
} }