From 14bd9602c23ad72efd4d89d506f113cb69d7c622 Mon Sep 17 00:00:00 2001 From: Jon Gotlin Date: Mon, 1 Jan 2024 17:43:43 +0100 Subject: [PATCH] dep: Allow Symfony 7 (#433) --- composer.json | 8 ++++---- src/Commands/ExpirationCommand.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index b5c88e8..ba516d0 100644 --- a/composer.json +++ b/composer.json @@ -16,10 +16,10 @@ "nesbot/carbon": "^1.26.3 || ^2.0", "predis/predis": "^1.1 || ^2.0", "ramsey/uuid": "^3.7 || ^4.0", - "symfony/console": "^5.0 || ^6.0", - "symfony/event-dispatcher": "^5.0 || ^6.0", - "symfony/http-foundation": "^5.0.7 || ^6.0", - "symfony/mime": "^5.0.9 || ^6.0" + "symfony/console": "^5.0 || ^6.0 || ^7.0", + "symfony/event-dispatcher": "^5.0 || ^6.0 || ^7.0", + "symfony/http-foundation": "^5.0.7 || ^6.0 || ^7.0", + "symfony/mime": "^5.0.9 || ^6.0 || ^7.0" }, "require-dev": { "ext-pcntl": "*", diff --git a/src/Commands/ExpirationCommand.php b/src/Commands/ExpirationCommand.php index 2344bc6..3e07036 100644 --- a/src/Commands/ExpirationCommand.php +++ b/src/Commands/ExpirationCommand.php @@ -41,7 +41,7 @@ protected function configure() /** * {@inheritDoc} */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln([ 'Cleaning server resources', @@ -71,6 +71,6 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln(''); - return 0; + return Command::SUCCESS; } }