mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
typo
This commit is contained in:
parent
35f88b692a
commit
e00f34b4b7
@ -71,10 +71,8 @@ final class NewTypeResolver implements PerNodeTypeResolverInterface, NodeTypeRes
|
||||
|
||||
private function shouldDelegate(New_ $newNode): bool
|
||||
{
|
||||
$nodeClass = get_class($newNode->class);
|
||||
|
||||
foreach ([Class_::class, Variable::class, Name::class] as $typeToSkip) {
|
||||
if ($nodeClass instanceof $typeToSkip) {
|
||||
if ($newNode->class instanceof $typeToSkip) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user