From a17a3fb945282d9be40f69d016a2d983034f4762 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 14 Nov 2023 09:12:43 +0100 Subject: [PATCH] revert BC break of adding return types to commands --- CHANGELOG.md | 5 +++++ src/Jackalope/Tools/Console/Command/JackrabbitCommand.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77fb4600..bb7e6f38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ Changelog Version 1 ========= +1.4.6 +----- + +* Revert BC break with the command return type declarations. + 1.4.5 ----- diff --git a/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php b/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php index 687e9483..85f2b234 100644 --- a/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php +++ b/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php @@ -37,7 +37,7 @@ class JackrabbitCommand extends Command */ protected $port; - protected function configure(): void + protected function configure() { $this->setName('jackalope:run:jackrabbit') ->addArgument('cmd', InputArgument::REQUIRED, 'Command to execute (start | stop | status)') @@ -71,7 +71,7 @@ protected function setPort($port): void $this->port = $port; } - protected function execute(InputInterface $input, OutputInterface $output): int + protected function execute(InputInterface $input, OutputInterface $output) { $cmd = $input->getArgument('cmd');