diff --git a/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php b/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php index 7295abf..e22c827 100644 --- a/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php +++ b/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php @@ -150,8 +150,7 @@ private function replaceInteropParam(Class_ $class): void return null; } - $subNode->parts[0] = 'Psr'; - return $subNode; + return new FullyQualified('Psr\Container\ContainerInterface'); }); }