@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public readonly string $stat; |
| 26 | 26 | public readonly int $value; |
| 27 | 27 | public readonly bool $valueAbsolute; |
| 28 | - protected int|string $duration; |
|
| 28 | + protected int | string $duration; |
|
| 29 | 29 | /** @var callable[] */ |
| 30 | 30 | public array $onApply = []; |
| 31 | 31 | /** @var callable[] */ |
@@ -102,14 +102,14 @@ discard block |
||
| 102 | 102 | return Constants::getConstantsValues(static::class, "DURATION_"); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - protected function getDuration(): int|string { |
|
| 105 | + protected function getDuration(): int | string { |
|
| 106 | 106 | return $this->duration; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * @throws \InvalidArgumentException |
| 111 | 111 | */ |
| 112 | - protected function setDuration(string|int $value): void { |
|
| 112 | + protected function setDuration(string | int $value): void { |
|
| 113 | 113 | if(!is_int($value) && !in_array($value, $this->getDurations(), true)) { |
| 114 | 114 | throw new \InvalidArgumentException("Invalid value set to CharacterEffect::\$duration. Expected string or integer."); |
| 115 | 115 | } |