Skip to content

Commit 839b279

Browse files
committed
fix
1 parent 685fcc5 commit 839b279

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ includes:
22
- extension.neon
33
- rules.neon
44
- vendor/phpstan/phpstan-strict-rules/rules.neon
5+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
56
- phar://phpstan.phar/conf/bleedingEdge.neon
67
- phpstan-baseline.neon
78

src/Rules/PHPUnit/DataProviderHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getDataProviderMethods(
7676
}
7777

7878
$dataProviderMethod = $this->parseDataProviderAnnotationValue($scope, $dataProviderValue);
79-
$dataProviderMethod[] = $node->getLine();
79+
$dataProviderMethod[] = $node->getStartLine();
8080

8181
yield $dataProviderValue => $dataProviderMethod;
8282
}
@@ -257,7 +257,7 @@ private function parseDataProviderExternalAttribute(Attribute $attribute): ?arra
257257
sprintf('%s::%s', $className, $methodNameArg->value) => [
258258
$dataProviderClassReflection,
259259
$methodNameArg->value,
260-
$attribute->getLine(),
260+
$attribute->getStartLine(),
261261
],
262262
];
263263
}
@@ -279,7 +279,7 @@ private function parseDataProviderAttribute(Attribute $attribute, ClassReflectio
279279
$methodNameArg->value => [
280280
$classReflection,
281281
$methodNameArg->value,
282-
$attribute->getLine(),
282+
$attribute->getStartLine(),
283283
],
284284
];
285285
}

0 commit comments

Comments
 (0)