@@ -15,14 +15,14 @@ final class ValueTest extends TestCase
15
15
/**
16
16
* @return array<string, array{0: string}>
17
17
*/
18
- public static function provideArithmeticOperator (): array
18
+ public static function provideArithmeticOperator ()
19
19
{
20
20
$ units = ['+ ' , '- ' , '* ' , '/ ' ];
21
21
22
22
return \array_combine (
23
23
$ units ,
24
24
\array_map (
25
- function (string $ unit ): array {
25
+ function (string $ unit ) {
26
26
return [$ unit ];
27
27
},
28
28
$ units
@@ -35,7 +35,7 @@ function (string $unit): array {
35
35
*
36
36
* @dataProvider provideArithmeticOperator
37
37
*/
38
- public function parsesArithmeticInFunctions (string $ operator ): void
38
+ public function parsesArithmeticInFunctions (string $ operator )
39
39
{
40
40
$ subject = Value::parseValue (new ParserState ('max(300px, 50vh ' . $ operator . ' 10px); ' , Settings::create ()));
41
41
@@ -47,7 +47,7 @@ public function parsesArithmeticInFunctions(string $operator): void
47
47
* The first datum is a template for the parser (using `sprintf` insertion marker `%s` for some expression).
48
48
* The second is for the expected result, which may have whitespace and trailing semicolon removed.
49
49
*/
50
- public static function provideCssFunctionTemplates (): array
50
+ public static function provideCssFunctionTemplates ()
51
51
{
52
52
return [
53
53
'calc ' => [
@@ -80,7 +80,7 @@ public function parsesArithmeticWithMultipleOperatorsInFunctions(
80
80
/**
81
81
* @return array<string, array{0: string, 1: string}>
82
82
*/
83
- public static function provideMalformedLengthOperands (): array
83
+ public static function provideMalformedLengthOperands ()
84
84
{
85
85
return [
86
86
'LHS missing number ' => ['vh ' , '10px ' ],
@@ -95,7 +95,7 @@ public static function provideMalformedLengthOperands(): array
95
95
*
96
96
* @dataProvider provideMalformedLengthOperands
97
97
*/
98
- public function parsesArithmeticWithMalformedOperandsInFunctions (string $ leftOperand , string $ rightOperand ): void
98
+ public function parsesArithmeticWithMalformedOperandsInFunctions (string $ leftOperand , string $ rightOperand )
99
99
{
100
100
$ subject = Value::parseValue (new ParserState (
101
101
'max(300px, ' . $ leftOperand . ' + ' . $ rightOperand . '); ' ,
0 commit comments