Skip to content

Commit

Permalink
Skip internal classes for extra public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Sep 6, 2024
1 parent e5f4f55 commit b60d25f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/AutoReview/SourceCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public static function provideSourceClassDoesNotAbuseInterfacesCases(): iterable
self::getSourceClasses(),
static function (string $class): bool {
$reflection = new \ReflectionClass($class);
$docComment = $reflection->getDocComment();

if (false !== $docComment && str_contains($docComment, '@internal')) {
return false;
}

$interfaces = $reflection->getInterfaceNames();
$interfacesCount = \count($interfaces);
Expand Down

0 comments on commit b60d25f

Please sign in to comment.