Skip to content

Commit 72083e3

Browse files
Rename variable
1 parent fadf16c commit 72083e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Metadata/Api/DataProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ public function providedData(string $className, string $methodName): ?array
5555
return null;
5656
}
5757

58-
$method = new ReflectionMethod($className, $methodName);
58+
$testMethod = new ReflectionMethod($className, $methodName);
5959

6060
if ($dataProvider->isNotEmpty()) {
6161
if ($testWith->isNotEmpty()) {
62-
$this->triggerWarningForMixingOfDataProviderAndTestWith($method);
62+
$this->triggerWarningForMixingOfDataProviderAndTestWith($testMethod);
6363
}
6464

6565
$data = $this->dataProvidedByMethods($className, $methodName, $dataProvider);
6666
} else {
6767
$data = $this->dataProvidedByMetadata($testWith);
6868
}
6969

70-
$testMethodNumberOfParameters = $method->getNumberOfParameters();
71-
$testMethodIsNonVariadic = !$method->isVariadic();
70+
$testMethodNumberOfParameters = $testMethod->getNumberOfParameters();
71+
$testMethodIsNonVariadic = !$testMethod->isVariadic();
7272

7373
foreach ($data as $key => $providedData) {
7474
$value = $providedData->getData();
@@ -86,7 +86,7 @@ public function providedData(string $className, string $methodName): ?array
8686

8787
if ($testMethodIsNonVariadic && $testMethodNumberOfParameters < count($value)) {
8888
$this->triggerWarningForArgumentCount(
89-
$method,
89+
$testMethod,
9090
$this->formatKey($key),
9191
$providedData->getProviderLabel(),
9292
count($value),

0 commit comments

Comments
 (0)