Skip to content

Commit ccff992

Browse files
committed
report correct line
1 parent c4597bf commit ccff992

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Rules/PHPUnit/DataProviderDataRule.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ public function processNode(Node $node, Scope $scope): array
5454

5555
$args = $this->arrayItemsToArgs($item->value);
5656
$var = new Node\Expr\New_(new Node\Name('test'));
57-
$scope->invokeNodeCallback(new Node\Expr\MethodCall($var, 'testTrim', $args));
57+
$scope->invokeNodeCallback(new Node\Expr\MethodCall(
58+
$var,
59+
'testTrim',
60+
$args,
61+
['startLine' => $item->getStartLine()]
62+
));
5863
}
5964
}
6065

0 commit comments

Comments
 (0)