From 058c0ebfaff77003a4e72b13c9c34ba0d82919d4 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 1 Nov 2025 12:31:06 +0100 Subject: [PATCH] Update changelog --- CHANGELOG.md | 2 +- module/CLI/src/Command/Api/InitialApiKeyCommand.php | 4 ++-- .../CLI/src/Command/Integration/MatomoSendVisitsCommand.php | 2 +- module/CLI/src/Command/Tag/DeleteTagsCommand.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0402f290..bf87c663 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,7 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this * [#2472](https://github.com/shlinkio/shlink/issues/2472) Add support for PHP 8.5 ### Changed -* *Nothing* +* [#2424](https://github.com/shlinkio/shlink/issues/2424) Make simple console commands invokable. ### Deprecated * *Nothing* diff --git a/module/CLI/src/Command/Api/InitialApiKeyCommand.php b/module/CLI/src/Command/Api/InitialApiKeyCommand.php index 4c6698f1..680135d8 100644 --- a/module/CLI/src/Command/Api/InitialApiKeyCommand.php +++ b/module/CLI/src/Command/Api/InitialApiKeyCommand.php @@ -12,7 +12,7 @@ use Symfony\Component\Console\Style\SymfonyStyle; #[AsCommand( name: InitialApiKeyCommand::NAME, - description: 'Tries to create initial API key' + description: 'Tries to create initial API key', )] class InitialApiKeyCommand extends Command { @@ -25,7 +25,7 @@ class InitialApiKeyCommand extends Command public function __invoke( SymfonyStyle $io, - #[Argument('The initial API to create')] string $apiKey + #[Argument('The initial API to create')] string $apiKey, ): int { $result = $this->apiKeyService->createInitial($apiKey); diff --git a/module/CLI/src/Command/Integration/MatomoSendVisitsCommand.php b/module/CLI/src/Command/Integration/MatomoSendVisitsCommand.php index da9c6562..f5d8e84c 100644 --- a/module/CLI/src/Command/Integration/MatomoSendVisitsCommand.php +++ b/module/CLI/src/Command/Integration/MatomoSendVisitsCommand.php @@ -41,7 +41,7 @@ use function sprintf; Send all visits created during 2022: %command.name% --since 2022-01-01 --until 2022-12-31 - HELP + HELP, )] class MatomoSendVisitsCommand extends Command implements VisitSendingProgressTrackerInterface { diff --git a/module/CLI/src/Command/Tag/DeleteTagsCommand.php b/module/CLI/src/Command/Tag/DeleteTagsCommand.php index a879fb4d..301cba26 100644 --- a/module/CLI/src/Command/Tag/DeleteTagsCommand.php +++ b/module/CLI/src/Command/Tag/DeleteTagsCommand.php @@ -21,11 +21,11 @@ class DeleteTagsCommand extends Command } /** - * @param string[] $tags + * @param string[] $tagNames */ public function __invoke( SymfonyStyle $io, - #[Option('The name of the tags to delete', name: 'name', shortcut: 't')] array $tagNames = [] + #[Option('The name of the tags to delete', name: 'name', shortcut: 't')] array $tagNames = [], ): int { if (empty($tagNames)) { $io->warning('You have to provide at least one tag name');