Skip to content

Commit 73ac16f

Browse files
author
Mihail Geshoski
committedMar 9, 2024
MDL-79667 lib: Upgrade OpenSpout to 4.23.0
1 parent b2fa19f commit 73ac16f

File tree

102 files changed

+790
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+790
-408
lines changed
 

‎lib/openspout/src/Common/Entity/Cell.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(?Style $style)
2727
$this->setStyle($style);
2828
}
2929

30-
abstract public function getValue(): null|bool|string|int|float|DateTimeInterface|DateInterval;
30+
abstract public function getValue(): null|bool|DateInterval|DateTimeInterface|float|int|string;
3131

3232
final public function setStyle(?Style $style): void
3333
{
@@ -39,7 +39,7 @@ final public function getStyle(): Style
3939
return $this->style;
4040
}
4141

42-
final public static function fromValue(null|bool|string|int|float|DateTimeInterface|DateInterval $value, ?Style $style = null): self
42+
final public static function fromValue(null|bool|DateInterval|DateTimeInterface|float|int|string $value, ?Style $style = null): self
4343
{
4444
if (\is_bool($value)) {
4545
return new BooleanCell($value, $style);
@@ -57,7 +57,7 @@ final public static function fromValue(null|bool|string|int|float|DateTimeInterf
5757
return new DateIntervalCell($value, $style);
5858
}
5959
if (isset($value[0]) && '=' === $value[0]) {
60-
return new FormulaCell($value, $style);
60+
return new FormulaCell($value, $style, null);
6161
}
6262

6363
return new StringCell($value, $style);

‎lib/openspout/src/Common/Entity/Cell/BooleanCell.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
final class BooleanCell extends Cell
1111
{
12-
private bool $value;
12+
private readonly bool $value;
1313

1414
public function __construct(bool $value, ?Style $style)
1515
{

0 commit comments

Comments
 (0)