From 395b8f55cce908967ef20a229836dce6d5390dd9 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 4 Sep 2024 16:35:49 +0700 Subject: [PATCH] Fix compatible code on next rector release --- .../Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'); }); }