From 99ec709abe180004f810a731c45f9f8213ad7857 Mon Sep 17 00:00:00 2001 From: TomasVotruba <924196+TomasVotruba@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:48:33 +0000 Subject: [PATCH] [automated] Apply Coding Standard --- src/Console/ConsoleApplication.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Console/ConsoleApplication.php b/src/Console/ConsoleApplication.php index 116d17919f2..40c945b40a9 100644 --- a/src/Console/ConsoleApplication.php +++ b/src/Console/ConsoleApplication.php @@ -26,8 +26,10 @@ final class ConsoleApplication extends Application /** * @param Command[] $commands */ - public function __construct(array $commands, private readonly SymfonyStyle $symfonyStyle) - { + public function __construct( + array $commands, + private readonly SymfonyStyle $symfonyStyle + ) { parent::__construct(self::NAME, VersionResolver::PACKAGE_VERSION); Assert::notEmpty($commands); @@ -66,7 +68,8 @@ public function doRun(InputInterface $input, OutputInterface $output): int // bin/rector src // bin/rector --only "RemovePhpVersionIdCheckRector" // file_exists() can check directory and file - if ((file_exists($commandName) || isset($_SERVER['argv'][1]) + if (( + file_exists($commandName) || isset($_SERVER['argv'][1]) && $commandName !== $_SERVER['argv'][1] // ensure verify has parameter option, eg: --only && $input->hasParameterOption($_SERVER['argv'][1])