From 2dde10380a26b51213b2426ceacc3274a598de53 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 28 Jun 2026 21:06:51 +0700 Subject: [PATCH 1/2] Fix double clear-cache --- src/Console/Command/ProcessCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index 511b536cea6..896cf30ad57 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -204,8 +204,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v } // clear cache - $optionClearCache = (bool) $input->getOption(Option::CLEAR_CACHE); - if ($optionDebug || $optionClearCache) { + if ($optionDebug) { $this->changedFilesDetector->clear(); } } From ee7aaf131a83d3faf57f3dcfce442291147bbdbb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 28 Jun 2026 14:08:35 +0000 Subject: [PATCH 2/2] [ci-review] Rector Rectify --- src/Console/Command/ProcessCommand.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index 896cf30ad57..30958d3ef6b 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -199,12 +199,9 @@ protected function initialize(InputInterface $input, OutputInterface $output): v } $optionDebug = (bool) $input->getOption(Option::DEBUG); - if ($optionDebug) { - $application->setCatchExceptions(false); - } - // clear cache if ($optionDebug) { + $application->setCatchExceptions(false); $this->changedFilesDetector->clear(); } }