@@ -25,7 +25,7 @@ |
||
25 | 25 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
26 | 26 | * with the same dimensions |
27 | 27 | */ |
28 | - public static function evaluate(array|float|string|null $value = 0, array|float|int|string $digits = 0): array|float|string |
|
28 | + public static function evaluate(array | float | string | null $value = 0, array | float | int | string $digits = 0): array | float | string |
|
29 | 29 | { |
30 | 30 | if (is_array($value) || is_array($digits)) { |
31 | 31 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $digits); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTime')] |
17 | - public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
17 | + public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
18 | 18 | { |
19 | 19 | $wizard = new Duration($separators, ...$formatBlocks); |
20 | 20 | self::assertSame($expectedResult, (string) $wizard); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTime')] |
17 | - public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
17 | + public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
18 | 18 | { |
19 | 19 | $wizard = new Time($separators, ...$formatBlocks); |
20 | 20 | self::assertSame($expectedResult, (string) $wizard); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDate')] |
17 | - public function testDate(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
17 | + public function testDate(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
18 | 18 | { |
19 | 19 | $wizard = new Date($separators, ...$formatBlocks); |
20 | 20 | self::assertSame($expectedResult, (string) $wizard); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @param string[] $formatBlocks |
17 | 17 | */ |
18 | 18 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTime')] |
19 | - public function testDateTime(string $expectedResult, string|null|array $separators, array $formatBlocks): void |
|
19 | + public function testDateTime(string $expectedResult, string | null | array $separators, array $formatBlocks): void |
|
20 | 20 | { |
21 | 21 | $wizard = new DateTime($separators, ...$formatBlocks); |
22 | 22 | self::assertSame($expectedResult, (string) $wizard); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | class ValueToTextTest extends AllSetupTeardown |
11 | 11 | { |
12 | 12 | #[\PHPUnit\Framework\Attributes\DataProvider('providerVALUE')] |
13 | - public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int|string $format): void |
|
13 | + public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int | string $format): void |
|
14 | 14 | { |
15 | 15 | $sheet = $this->getSheet(); |
16 | 16 | $this->setCell('A1', $value); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerORLiteral')] |
21 | - public function testORLiteral(bool|string $expectedResult, float|int|string $formula): void |
|
21 | + public function testORLiteral(bool | string $expectedResult, float | int | string $formula): void |
|
22 | 22 | { |
23 | 23 | $sheet = $this->getSheet(); |
24 | 24 | $sheet->getCell('A1')->setValue("=OR($formula)"); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | class HelpersTest extends TestCase |
11 | 11 | { |
12 | 12 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDaysPerYear')] |
13 | - public function testDaysPerYear(mixed $expectedResult, int $year, int|string $basis): void |
|
13 | + public function testDaysPerYear(mixed $expectedResult, int $year, int | string $basis): void |
|
14 | 14 | { |
15 | 15 | $result = Helpers::daysPerYear($year, $basis); |
16 | 16 | self::assertSame($expectedResult, $result); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | class GeStepTest extends TestCase |
15 | 15 | { |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerGESTEP')] |
17 | - public function testDirectCallToGESTEP(int|string $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void |
|
17 | + public function testDirectCallToGESTEP(int | string $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void |
|
18 | 18 | { |
19 | 19 | $result = ($arg2 === null) ? Compare::geStep($arg1) : Compare::geStep($arg1, $arg2); |
20 | 20 | self::assertSame($expectedResult, $result); |