From ca4947793ef9a35d90dc277db6f3c5c63ab0434f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Gon=C3=A7alves?= Date: Fri, 26 Sep 2025 11:25:26 +0100 Subject: [PATCH] Fix CsFixerGitHookCommand - Fix `[ERROR] Installation failed: Undefined constant Symfony\Component\Console\Command\Command::SUCCESS` - As a temporary fix until we can figure out why we will not use those constants on that command --- Kununu/CsFixer/Command/CsFixerGitHookCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kununu/CsFixer/Command/CsFixerGitHookCommand.php b/Kununu/CsFixer/Command/CsFixerGitHookCommand.php index 47594ad..8472f51 100644 --- a/Kununu/CsFixer/Command/CsFixerGitHookCommand.php +++ b/Kununu/CsFixer/Command/CsFixerGitHookCommand.php @@ -42,11 +42,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io->success('PHP CS Fixer Git pre‑commit hook installed successfully.'); - return self::SUCCESS; + return 0; } catch (Throwable $e) { $io->error('Installation failed: ' . $e->getMessage()); - return self::FAILURE; + return 1; } }