PoisonEffect should accept Translatable|string, like its parent

this doesn't really break anything, but someone will likely whine about consistency if it's not fixed now.
This commit is contained in:
Dylan K. Taylor 2021-09-03 21:33:55 +01:00
parent 0404298c74
commit 7d5b9295cb
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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;
}