@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | #[\PHPUnit\Framework\Attributes\DataProvider('providerErrorType')] |
20 | - public function testErrorType(int|string $expectedResult, mixed $value): void |
|
20 | + public function testErrorType(int | string $expectedResult, mixed $value): void |
|
21 | 21 | { |
22 | 22 | $result = ExcelError::type($value); |
23 | 23 | self::assertSame($expectedResult, $result); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIsOdd')] |
21 | - public function testIsOdd(bool|string $expectedResult, mixed $value): void |
|
21 | + public function testIsOdd(bool | string $expectedResult, mixed $value): void |
|
22 | 22 | { |
23 | 23 | $result = Value::isOdd($value); |
24 | 24 | self::assertEquals($expectedResult, $result); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIsEven')] |
21 | - public function testIsEven(bool|string $expectedResult, mixed $value): void |
|
21 | + public function testIsEven(bool | string $expectedResult, mixed $value): void |
|
22 | 22 | { |
23 | 23 | $result = Value::isEven($value); |
24 | 24 | self::assertEquals($expectedResult, $result); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIssue2232')] |
33 | - public function testBooleanConversions(bool $useStringBinder, ?bool $preserveBoolString, bool|string $b2Value, bool|string $b3Value): void |
|
33 | + public function testBooleanConversions(bool $useStringBinder, ?bool $preserveBoolString, bool | string $b2Value, bool | string $b3Value): void |
|
34 | 34 | { |
35 | 35 | if ($useStringBinder) { |
36 | 36 | $binder = new StringValueBinder(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | #[\PHPUnit\Framework\Attributes\DataProvider('providerNumberFormatNoConversionTest')] |
24 | - public function testNumberFormatNoConversion(int|string $expectedValue, string $expectedFormat, string $cellAddress): void |
|
24 | + public function testNumberFormatNoConversion(int | string $expectedValue, string $expectedFormat, string $cellAddress): void |
|
25 | 25 | { |
26 | 26 | $spreadsheet = $this->csvReader->load($this->filename); |
27 | 27 | $worksheet = $spreadsheet->getActiveSheet(); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | class ErrorCodeMapTest extends TestCase |
11 | 11 | { |
12 | 12 | #[\PHPUnit\Framework\Attributes\DataProvider('errorCodeMapProvider')] |
13 | - public function testErrorCode(bool|string $expected, int $index): void |
|
13 | + public function testErrorCode(bool | string $expected, int $index): void |
|
14 | 14 | { |
15 | 15 | self::assertSame($expected, ErrorCode::lookup($index)); |
16 | 16 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | #[\PHPUnit\Framework\Attributes\DataProvider('providerFontSizeToPixels')] |
45 | - public function testFontSizeToPixels(float|int $expectedResult, float|int $size): void |
|
45 | + public function testFontSizeToPixels(float | int $expectedResult, float | int $size): void |
|
46 | 46 | { |
47 | 47 | $result = Font::fontSizeToPixels($size); |
48 | 48 | self::assertEquals($expectedResult, $result); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | #[\PHPUnit\Framework\Attributes\DataProvider('providerInchSizeToPixels')] |
57 | - public function testInchSizeToPixels(float|int $expectedResult, float|int $size): void |
|
57 | + public function testInchSizeToPixels(float | int $expectedResult, float | int $size): void |
|
58 | 58 | { |
59 | 59 | $result = Font::inchSizeToPixels($size); |
60 | 60 | self::assertEqualsWithDelta($expectedResult, $result, self::FONT_PRECISION); |
@@ -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(); |