Skip to content

Commit f083e63

Browse files
committed
Manual mutation testing ep. 1
1 parent b36a404 commit f083e63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Rules/PHPUnit/DataProviderDataRule.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use function array_slice;
1313
use function count;
1414
use function max;
15-
use function min;
1615
use const PHP_INT_MAX;
1716

1817
/**
@@ -116,7 +115,7 @@ public function processNode(Node $node, Scope $scope): array
116115
&& !$testMethod->isVariadic()
117116
&& $numberOfParameters !== $maxNumberOfParameters
118117
) {
119-
$args = array_slice($args, 0, min($numberOfParameters, $maxNumberOfParameters));
118+
$args = array_slice($args, 0, $numberOfParameters);
120119
}
121120

122121
$scope->invokeNodeCallback(new Node\Expr\MethodCall(

0 commit comments

Comments
 (0)