mirror of https://github.com/rectorphp/rector.git
skip self type
This commit is contained in:
parent
97ca45aade
commit
c002efe1d9
|
@ -3,7 +3,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
|
||||
final class OutputInterface
|
||||
final class OutputStyleOutputInterface
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -114,6 +114,11 @@ CODE_SAMPLE
|
|||
if ($classReflection->isSubclassOf($safeType)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// skip self too
|
||||
if ($classReflection->getName() === $safeType) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
if ($node->isPrivate()) {
|
||||
|
|
Loading…
Reference in New Issue