Skip to content

Commit ef19257

Browse files
committed
fix invalid isPublic miss
1 parent 55f28f8 commit ef19257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/PHPUnit/PublicStaticDataProviderRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function processNode(Node $node, Scope $scope): array
7373
->build();
7474
}
7575

76-
if (! $dataProviderClassMethod->isStatic()) {
76+
if (! $dataProviderClassMethod->isPublic()) {
7777
$errorMessage = sprintf(self::PUBLIC_ERROR_MESSAGE, $dataProviderMethodName);
7878
$ruleErrors[] = RuleErrorBuilder::message($errorMessage)
7979
->identifier(RuleIdentifier::PHPUNIT_PUBLIC_STATIC_DATA_PROVIDER)

0 commit comments

Comments
 (0)