Skip to content

Commit fe8759b

Browse files
committed
Remove parameter types for PHP5.
1 parent 904ddd5 commit fe8759b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Value/ValueTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function provideArithmeticOperator()
2222
return \array_combine(
2323
$units,
2424
\array_map(
25-
function (string $unit) {
25+
function ($unit) {
2626
return [$unit];
2727
},
2828
$units
@@ -35,7 +35,7 @@ function (string $unit) {
3535
*
3636
* @dataProvider provideArithmeticOperator
3737
*/
38-
public function parsesArithmeticInFunctions(string $operator)
38+
public function parsesArithmeticInFunctions($operator)
3939
{
4040
$subject = Value::parseValue(new ParserState('max(300px, 50vh ' . $operator . ' 10px);', Settings::create()));
4141

@@ -67,8 +67,8 @@ public static function provideCssFunctionTemplates()
6767
* @dataProvider provideCssFunctionTemplates
6868
*/
6969
public function parsesArithmeticWithMultipleOperatorsInFunctions(
70-
string $parserTemplate,
71-
string $expectedResultTemplate
70+
$parserTemplate,
71+
$expectedResultTemplate
7272
) {
7373
static $expression = '300px + 10% + 10vw';
7474

@@ -95,7 +95,7 @@ public static function provideMalformedLengthOperands()
9595
*
9696
* @dataProvider provideMalformedLengthOperands
9797
*/
98-
public function parsesArithmeticWithMalformedOperandsInFunctions(string $leftOperand, string $rightOperand)
98+
public function parsesArithmeticWithMalformedOperandsInFunctions($leftOperand, $rightOperand)
9999
{
100100
$subject = Value::parseValue(new ParserState(
101101
'max(300px, ' . $leftOperand . ' + ' . $rightOperand . ');',

0 commit comments

Comments
 (0)