Skip to content

Commit 3376585

Browse files
Explicitly ignore staticMethod.dynamicName error
1 parent 2d3595e commit 3376585

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Metadata/Api/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private function dataProvidedByMethods(string $className, string $methodName, Me
139139
$className = $_dataProvider->className();
140140
$methodName = $_dataProvider->methodName();
141141

142-
/** @phpstan-ignore method.dynamicName */
142+
/** @phpstan-ignore staticMethod.dynamicName */
143143
$data = $className::$methodName();
144144
} catch (Throwable $e) {
145145
Event\Facade::emitter()->dataProviderMethodFinished(

src/Runner/PHPT/PhptTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ private function assertPhptExpectation(array $sections, string $output): void
405405
$sectionContent = preg_replace('/\r\n/', "\n", trim($sections[$sectionName]));
406406
$expected = $sectionName === 'EXPECTREGEX' ? "/{$sectionContent}/" : $sectionContent;
407407

408+
/** @phpstan-ignore staticMethod.dynamicName */
408409
Assert::$sectionAssertion($expected, $actual);
409410

410411
return;

0 commit comments

Comments
 (0)