Skip to content

Commit 263c221

Browse files
committed
fix type for justifyLastLine setting functions
1 parent 4561f41 commit 263c221

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpSpreadsheet/Style/Alignment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Alignment extends Supervisor
100100
/**
101101
* Justify Last Line alignment.
102102
*/
103-
protected ?string $justifyLastLine = null;
103+
protected ?bool $justifyLastLine = null;
104104

105105
/**
106106
* Vertical alignment.
@@ -266,7 +266,7 @@ public function setHorizontal(string $horizontalAlignment): static
266266
/**
267267
* Get Justify Last Line.
268268
*/
269-
public function getJustifyLastLine(): null|string
269+
public function getJustifyLastLine(): ?bool
270270
{
271271
if ($this->isSupervisor) {
272272
return $this->getSharedComponent()->getJustifyLastLine();
@@ -278,11 +278,11 @@ public function getJustifyLastLine(): null|string
278278
/**
279279
* Set Justify Last Line.
280280
*
281-
* @param string $justifyLastLine see self::HORIZONTAL_*
281+
* @param bool $justifyLastLine see self::HORIZONTAL_*
282282
*
283283
* @return $this
284284
*/
285-
public function setJustifyLastLine(string $justifyLastLine): static
285+
public function setJustifyLastLine(bool $justifyLastLine): static
286286
{
287287
if ($this->isSupervisor) {
288288
$styleArray = $this->getStyleArray(['justifyLastLine' => $justifyLastLine]);

0 commit comments

Comments
 (0)