diff --git a/build/composer-require-checker.json b/build/composer-require-checker.json index 75cb6d099ec..05a759a45c2 100644 --- a/build/composer-require-checker.json +++ b/build/composer-require-checker.json @@ -19,7 +19,6 @@ "Reflection", "SPL", "standard", - "pcntl", "mbstring", "hash", "tokenizer", diff --git a/src/Command/CommandHelper.php b/src/Command/CommandHelper.php index c3de7b2e84a..c6d1a59c385 100644 --- a/src/Command/CommandHelper.php +++ b/src/Command/CommandHelper.php @@ -51,8 +51,6 @@ use function is_readable; use function is_string; use function mkdir; -use function pcntl_async_signals; -use function pcntl_signal; use function register_shutdown_function; use function sprintf; use function str_ends_with; @@ -354,7 +352,6 @@ public static function begin( throw new InceptionNotSuccessfulException(); } - self::setUpSignalHandler($errorOutput); /** @var bool|null $customRulesetUsed */ $customRulesetUsed = $container->getParameter('customRulesetUsed'); if ($customRulesetUsed === null) { @@ -498,19 +495,6 @@ private static function executeBootstrapFile( } } - private static function setUpSignalHandler(Output $output): void - { - if (!function_exists('pcntl_signal')) { - return; - } - - pcntl_async_signals(true); - pcntl_signal(SIGINT, static function () use ($output): void { - $output->writeLineFormatted(''); - exit(1); - }); - } - /** * @param string[] $configFiles * @param array $loaderParameters