diff --git a/src/block/utils/SignText.php b/src/block/utils/SignText.php index a4ab838bb..896f2b827 100644 --- a/src/block/utils/SignText.php +++ b/src/block/utils/SignText.php @@ -43,7 +43,10 @@ class SignText{ * @throws \InvalidArgumentException */ public function __construct(?array $lines = null){ - $this->setLines($lines ?? array_fill(0, self::LINE_COUNT, "")); + $this->lines = array_fill(0, self::LINE_COUNT, ""); + if($lines !== null){ + $this->setLines($lines); + } } /**