From 3b83c1fa7b533aaade1b4368dab0dd45ad4d4f9e Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Fri, 29 Sep 2023 18:08:29 +0200 Subject: [PATCH] Remove dead code from `ConsoleApplication` class --- src/SPC/ConsoleApplication.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/SPC/ConsoleApplication.php b/src/SPC/ConsoleApplication.php index 16f4442e..5ab014fa 100644 --- a/src/SPC/ConsoleApplication.php +++ b/src/SPC/ConsoleApplication.php @@ -29,11 +29,6 @@ final class ConsoleApplication extends Application { parent::__construct('static-php-cli', self::VERSION); - global $argv; - - // Detailed debugging errors are not displayed in the production environment. Only the error display provided by Symfony console is used. - $this->setCatchExceptions(file_exists(ROOT_DIR . '/.prod') || !in_array('--debug', $argv)); - $this->addCommands( [ new BuildCliCommand(),