@@ -74,7 +74,7 @@ |
||
74 | 74 | AttackAction::invoke($fighter, $this->findOpponent($fighter), $action, $this->playerAction); |
75 | 75 | } |
76 | 76 | |
77 | - private function askForAction(): Attack|Usable |
|
77 | + private function askForAction(): Attack | Usable |
|
78 | 78 | { |
79 | 79 | $action = $this->playerAction->askForChoice( |
80 | 80 | 'Select action', |
@@ -42,7 +42,7 @@ |
||
42 | 42 | ): Damage { |
43 | 43 | $initialDamage = new Damage(0); |
44 | 44 | |
45 | - return match (true) { |
|
45 | + return match(true) { |
|
46 | 46 | $attack instanceof MeleeAttack => |
47 | 47 | $initialDamage |
48 | 48 | ->increaseBy($attack->getDamage($attacker->getWeapon() |