Skip to content

Commit 263a2d2

Browse files
Explicitly ignore method.dynamicName error
1 parent 34600a0 commit 263a2d2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/Framework/Constraint/Object/ObjectEquals.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ protected function matches(mixed $other): bool
132132
);
133133
}
134134

135+
/** @phpstan-ignore method.dynamicName */
135136
return $other->{$this->method}($this->expected);
136137
}
137138

src/Framework/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,7 @@ final protected function runTest(): mixed
11301130
$errorLogPrevious = ini_set('error_log', stream_get_meta_data($capture)['uri']);
11311131

11321132
try {
1133+
/** @phpstan-ignore method.dynamicName */
11331134
$testResult = $this->{$this->methodName}(...$testArguments);
11341135

11351136
$errorLogOutput = stream_get_contents($capture);
@@ -2079,10 +2080,12 @@ private function invokeHookMethods(HookMethodCollection $hookMethods, Event\Emit
20792080
);
20802081

20812082
try {
2083+
/** @phpstan-ignore method.dynamicName */
20822084
$this->{$methodName}();
20832085
} catch (Throwable $t) {
20842086
}
20852087

2088+
/** @phpstan-ignore method.dynamicName */
20862089
$emitter->{$calledMethod}(
20872090
$test,
20882091
$methodInvoked
@@ -2091,6 +2094,7 @@ private function invokeHookMethods(HookMethodCollection $hookMethods, Event\Emit
20912094
$methodsInvoked[] = $methodInvoked;
20922095

20932096
if (isset($t)) {
2097+
/** @phpstan-ignore method.dynamicName */
20942098
$emitter->{$erroredMethod}(
20952099
$test,
20962100
$methodInvoked,
@@ -2102,6 +2106,7 @@ private function invokeHookMethods(HookMethodCollection $hookMethods, Event\Emit
21022106
}
21032107

21042108
if ($methodsInvoked !== []) {
2109+
/** @phpstan-ignore method.dynamicName */
21052110
$emitter->{$finishedMethod}(
21062111
$test,
21072112
...$methodsInvoked

src/Metadata/Api/DataProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ private function dataProvidedByMethods(string $className, string $methodName, Me
138138

139139
$className = $_dataProvider->className();
140140
$methodName = $_dataProvider->methodName();
141-
$data = $className::$methodName();
141+
142+
/** @phpstan-ignore method.dynamicName */
143+
$data = $className::$methodName();
142144
} catch (Throwable $e) {
143145
Event\Facade::emitter()->dataProviderMethodFinished(
144146
$testMethod,

0 commit comments

Comments
 (0)