diff --git a/src/entity/effect/PoisonEffect.php b/src/entity/effect/PoisonEffect.php index 02bab6b8c..99dffb3af 100644 --- a/src/entity/effect/PoisonEffect.php +++ b/src/entity/effect/PoisonEffect.php @@ -34,7 +34,7 @@ class PoisonEffect extends Effect{ /** @var bool */ private $fatal; - public function __construct(Translatable $name, Color $color, bool $isBad = false, bool $hasBubbles = true, bool $fatal = false){ + public function __construct(Translatable|string $name, Color $color, bool $isBad = false, bool $hasBubbles = true, bool $fatal = false){ parent::__construct($name, $color, $isBad, $hasBubbles); $this->fatal = $fatal; }