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