From 47bddd43e28d693afbe8277c2a440f24e1bbfe18 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 Signed-off-by: Abdul Malik Ikhsan --- .../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'); }); }