From 0b70838ecebac40a046be9d9e39d3009fc93ee15 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 12 Feb 2025 15:15:17 +0000 Subject: [PATCH 1/3] Support Symfony 7 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ea285c3..c8e6cf8 100644 --- a/composer.json +++ b/composer.json @@ -7,8 +7,8 @@ "php": "^8.1", "guzzlehttp/guzzle": "^6.5.5|^7.0.1", "laravel/prompts": "^0.1.3|^0.2.0|^0.3.0", - "symfony/console": "^4.0|^5.0|^6.0", - "symfony/process": "^4.2|^5.0|^6.0" + "symfony/console": "^4.0|^5.0|^6.0|^7.0", + "symfony/process": "^4.2|^5.0|^6.0|^7.0" }, "require-dev": { "phpunit/phpunit": "^8.0" From 017912f838c7cc6221d526065dc2a52ff5529611 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 12 Feb 2025 15:15:23 +0000 Subject: [PATCH 2/3] Add return types --- src/NewCommand.php | 2 +- src/UpdateCommand.php | 2 +- src/VersionCommand.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index f3aefb8..9b3636a 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -126,7 +126,7 @@ protected function interact(InputInterface $input, OutputInterface $output) * * @return int */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { try { $this diff --git a/src/UpdateCommand.php b/src/UpdateCommand.php index adad171..04c9110 100644 --- a/src/UpdateCommand.php +++ b/src/UpdateCommand.php @@ -32,7 +32,7 @@ protected function configure() * * @return int */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $this->input = $input; $this->output = $output; diff --git a/src/VersionCommand.php b/src/VersionCommand.php index 3a1531c..fb5180c 100644 --- a/src/VersionCommand.php +++ b/src/VersionCommand.php @@ -25,7 +25,7 @@ protected function configure() * * @return int */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $please = new Please($output); From aa91248e0c27c5e0e73072333b223b7c57decc78 Mon Sep 17 00:00:00 2001 From: duncanmcclean <19637309+duncanmcclean@users.noreply.github.com> Date: Wed, 12 Feb 2025 15:27:09 +0000 Subject: [PATCH 3/3] Fix styling --- src/NewCommand.php | 2 -- src/UpdateCommand.php | 2 -- src/VersionCommand.php | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 9b3636a..a676037 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -123,8 +123,6 @@ protected function interact(InputInterface $input, OutputInterface $output) /** * Execute the command. - * - * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int { diff --git a/src/UpdateCommand.php b/src/UpdateCommand.php index 04c9110..bf311b8 100644 --- a/src/UpdateCommand.php +++ b/src/UpdateCommand.php @@ -29,8 +29,6 @@ protected function configure() /** * Execute the command. - * - * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int { diff --git a/src/VersionCommand.php b/src/VersionCommand.php index fb5180c..e0cfa14 100644 --- a/src/VersionCommand.php +++ b/src/VersionCommand.php @@ -22,8 +22,6 @@ protected function configure() /** * Execute the command. - * - * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int {