From d8119c7f7b45f54836203a6b62c9e80e32e8e6af Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 22 Dec 2025 22:54:09 +0700 Subject: [PATCH] Fix rector-symfony phpunit --- src/PostRector/Application/PostFileProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostRector/Application/PostFileProcessor.php b/src/PostRector/Application/PostFileProcessor.php index 670d9acf55e..63536e11e70 100644 --- a/src/PostRector/Application/PostFileProcessor.php +++ b/src/PostRector/Application/PostFileProcessor.php @@ -103,7 +103,7 @@ private function getPostRectors(): array $postRectors = []; // sorted by priority, to keep removed imports in order - if ($isRenamedClassEnabled) { + if ($isRenamedClassEnabled && $isNameImportingEnabled) { $postRectors[] = $this->classRenamingPostRector; }