@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTimeOnly')] |
41 | - public function testTimeOnly(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
41 | + public function testTimeOnly(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
42 | 42 | { |
43 | 43 | Cell::setCalculateDateTimeType(Cell::CALCULATE_TIME_FLOAT); |
44 | 44 | $this->spreadsheet = new Spreadsheet(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDateAndTime')] |
84 | - public function testDateAndTime(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
84 | + public function testDateAndTime(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
85 | 85 | { |
86 | 86 | Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_FLOAT); |
87 | 87 | $this->spreadsheet = new Spreadsheet(); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | #[\PHPUnit\Framework\Attributes\DataProvider('providerAsis')] |
127 | - public function testDefault(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
127 | + public function testDefault(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
128 | 128 | { |
129 | 129 | //Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS); |
130 | 130 | $this->spreadsheet = new Spreadsheet(); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | #[\PHPUnit\Framework\Attributes\DataProvider('providerAsis')] |
147 | - public function testAsis(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
147 | + public function testAsis(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
148 | 148 | { |
149 | 149 | Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS); |
150 | 150 | $this->spreadsheet = new Spreadsheet(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | class RefRangeTest extends TestCase |
12 | 12 | { |
13 | 13 | #[\PHPUnit\Framework\Attributes\DataProvider('providerRefRange')] |
14 | - public function testRefRange(int|string $expectedResult, string $rangeString): void |
|
14 | + public function testRefRange(int | string $expectedResult, string $rangeString): void |
|
15 | 15 | { |
16 | 16 | $spreadsheet = new Spreadsheet(); |
17 | 17 | $sheet = $spreadsheet->getActiveSheet(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | class FloatsRetainedTest extends TestCase |
14 | 14 | { |
15 | 15 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIntyFloatsRetainedByWriter')] |
16 | - public function testIntyFloatsRetainedByWriter(float|int $value): void |
|
16 | + public function testIntyFloatsRetainedByWriter(float | int $value): void |
|
17 | 17 | { |
18 | 18 | $outputFilename = File::temporaryFilename(); |
19 | 19 | $spreadsheet = new Spreadsheet(); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | class DefaultValueBinderTest extends TestCase |
17 | 17 | { |
18 | 18 | #[\PHPUnit\Framework\Attributes\DataProvider('binderProvider')] |
19 | - public function testBindValue(null|string|bool|int|float|DateTime|DateTimeImmutable $value): void |
|
19 | + public function testBindValue(null | string | bool | int | float | DateTime | DateTimeImmutable $value): void |
|
20 | 20 | { |
21 | 21 | $spreadsheet = new Spreadsheet(); |
22 | 22 | $sheet = $spreadsheet->getActiveSheet(); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | #[\PHPUnit\Framework\Attributes\DataProvider('providerCreateFromColumnRowException')] |
79 | - public function testCreateFromColumnRowException(int|string $columnId, int|string $rowId): void |
|
79 | + public function testCreateFromColumnRowException(int | string $columnId, int | string $rowId): void |
|
80 | 80 | { |
81 | 81 | $this->expectException(Exception::class); |
82 | 82 | $this->expectExceptionMessage('Row and Column Ids must be positive integer values'); |
@@ -168,7 +168,7 @@ |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | #[\PHPUnit\Framework\Attributes\DataProvider('providerAbsoluteReferences')] |
171 | - public function testAbsoluteReferenceFromString(mixed $expectedResult, int|string $rangeSet): void |
|
171 | + public function testAbsoluteReferenceFromString(mixed $expectedResult, int | string $rangeSet): void |
|
172 | 172 | { |
173 | 173 | $result = Coordinate::absoluteReference((string) $rangeSet); |
174 | 174 | self::assertEquals($expectedResult, $result); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerXORLiteral')] |
21 | - public function testXORLiteral(mixed $expectedResult, float|string $formula): void |
|
21 | + public function testXORLiteral(mixed $expectedResult, float | string $formula): void |
|
22 | 22 | { |
23 | 23 | $sheet = $this->getSheet(); |
24 | 24 | $sheet->getCell('A1')->setValue("=XOR($formula)"); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return mixed[]|string |
36 | 36 | */ |
37 | - public static function chooseCols(mixed $input, mixed ...$args): array|string |
|
37 | + public static function chooseCols(mixed $input, mixed ...$args): array | string |
|
38 | 38 | { |
39 | 39 | if (!is_array($input)) { |
40 | 40 | $input = [[$input]]; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @return mixed[]|string |
53 | 53 | */ |
54 | - public static function chooseRows(mixed $input, mixed ...$args): array|string |
|
54 | + public static function chooseRows(mixed $input, mixed ...$args): array | string |
|
55 | 55 | { |
56 | 56 | if (!is_array($input)) { |
57 | 57 | $input = [[$input]]; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | return $outputArray; |
81 | 81 | } |
82 | 82 | |
83 | - private static function dropRows(array $array, mixed $offset): array|string |
|
83 | + private static function dropRows(array $array, mixed $offset): array | string |
|
84 | 84 | { |
85 | 85 | if ($offset === null) { |
86 | 86 | return $array; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @return mixed[]|string |
114 | 114 | */ |
115 | - public static function drop(mixed $input, mixed $rows = null, mixed $columns = null): array|string |
|
115 | + public static function drop(mixed $input, mixed $rows = null, mixed $columns = null): array | string |
|
116 | 116 | { |
117 | 117 | if (!is_array($input)) { |
118 | 118 | $input = [[$input]]; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return self::transpose($outputArray3); |
135 | 135 | } |
136 | 136 | |
137 | - private static function takeRows(array $array, mixed $offset): array|string |
|
137 | + private static function takeRows(array $array, mixed $offset): array | string |
|
138 | 138 | { |
139 | 139 | if ($offset === null) { |
140 | 140 | return $array; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @return mixed[]|string |
167 | 167 | */ |
168 | - public static function take(mixed $input, mixed $rows, mixed $columns = null): array|string |
|
168 | + public static function take(mixed $input, mixed $rows, mixed $columns = null): array | string |
|
169 | 169 | { |
170 | 170 | if (!is_array($input)) { |
171 | 171 | $input = [[$input]]; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * |
198 | 198 | * @return mixed[]|string |
199 | 199 | */ |
200 | - public static function expand(mixed $input, mixed $rows, mixed $columns = null, mixed $pad = '#N/A'): array|string |
|
200 | + public static function expand(mixed $input, mixed $rows, mixed $columns = null, mixed $pad = '#N/A'): array | string |
|
201 | 201 | { |
202 | 202 | if (!is_array($input)) { |
203 | 203 | $input = [[$input]]; |
@@ -116,7 +116,7 @@ |
||
116 | 116 | * |
117 | 117 | * @return string Formatted string |
118 | 118 | */ |
119 | - public static function toFormattedString($value, string $format, null|array|callable $callBack = null): string |
|
119 | + public static function toFormattedString($value, string $format, null | array | callable $callBack = null): string |
|
120 | 120 | { |
121 | 121 | while (is_array($value)) { |
122 | 122 | $value = array_shift($value); |