skip self type

This commit is contained in:
Tomas Votruba 2021-07-06 01:10:55 +02:00
parent 97ca45aade
commit c002efe1d9
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
declare(strict_types=1);
final class OutputInterface
final class OutputStyleOutputInterface
{
}

View File

@ -114,6 +114,11 @@ CODE_SAMPLE
if ($classReflection->isSubclassOf($safeType)) {
return null;
}
// skip self too
if ($classReflection->getName() === $safeType) {
return null;
}
}
if ($node->isPrivate()) {