diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 5b6ca6d..8bf7df6 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -13,6 +13,6 @@ jobs: uses: "nucleos/actions/.github/workflows/continuous-integration.yml@main" with: PHP_EXTENSIONS: "mbstring, json, mongodb" - SYMFONY_VERSIONS: "6.3" + SYMFONY_VERSIONS: "7.0" secrets: CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" diff --git a/composer.json b/composer.json index 2998174..e85f2ca 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ "require": { "php": "^8.2", "ext-json": "*", - "symfony/console": "^6.3", - "symfony/dependency-injection": "^6.3", - "symfony/process": "^6.3", + "symfony/console": "^7.0", + "symfony/dependency-injection": "^7.0", + "symfony/process": "^7.0", "vierbergenlars/php-semver": "^3.0.4" }, "require-dev": { diff --git a/src/Command/ChangesCommand.php b/src/Command/ChangesCommand.php index a260d08..65662fb 100644 --- a/src/Command/ChangesCommand.php +++ b/src/Command/ChangesCommand.php @@ -15,18 +15,18 @@ use Nucleos\Relazy\Context; use Nucleos\Relazy\Exception\NoReleaseFoundException; use Nucleos\Relazy\Output\Console; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; +#[AsCommand(name: 'changes')] final class ChangesCommand extends BaseCommand { private const EXCLUDE_MERGE_COMMITS = 'exclude-merge-commits'; private const FILES = 'files'; - protected static $defaultName = 'changes'; - protected function configure(): void { $this->setDescription('Shows the list of changes since last release'); diff --git a/src/Command/CurrentCommand.php b/src/Command/CurrentCommand.php index 7bfd740..192d0b4 100644 --- a/src/Command/CurrentCommand.php +++ b/src/Command/CurrentCommand.php @@ -15,18 +15,18 @@ use Nucleos\Relazy\Context; use Nucleos\Relazy\Exception\NoReleaseFoundException; use Nucleos\Relazy\Output\Console; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; +#[AsCommand(name: 'current')] final class CurrentCommand extends BaseCommand { private const VCS_TAG = 'vcs-tag'; private const RAW = 'raw'; - protected static $defaultName = 'current'; - protected function configure(): void { $this->setDescription('Display information about the current release'); diff --git a/src/Command/ReleaseCommand.php b/src/Command/ReleaseCommand.php index 205eca9..da6c588 100644 --- a/src/Command/ReleaseCommand.php +++ b/src/Command/ReleaseCommand.php @@ -21,20 +21,20 @@ use Nucleos\Relazy\Interaction\InteractionRequestAware; use Nucleos\Relazy\Interaction\InteractionType; use Nucleos\Relazy\Output\Console; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; +#[AsCommand(name: 'release')] final class ReleaseCommand extends BaseCommand { private const CONFIRM_FIRST = 'confirm-first'; private const DRY_RUN = 'dry-run'; - protected static $defaultName = 'release'; - protected function configure(): void { $this->setDescription('Release a new version of the project'); diff --git a/vendor-bin/tools/composer.json b/vendor-bin/tools/composer.json index 33ae4b3..5164084 100644 --- a/vendor-bin/tools/composer.json +++ b/vendor-bin/tools/composer.json @@ -16,7 +16,7 @@ "phpunit/phpunit": "^10.1.2", "psalm/plugin-phpunit": "^0.19.0", "psalm/plugin-symfony": "^5.0.3", - "symfony/phpunit-bridge": "^6.2.7", + "symfony/phpunit-bridge": "^7.0.0", "vimeo/psalm": "^5.9" }, "config": { diff --git a/vendor-bin/tools/composer.lock b/vendor-bin/tools/composer.lock index 10d7540..862e6a6 100644 --- a/vendor-bin/tools/composer.lock +++ b/vendor-bin/tools/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9dbf17a2dfcf13db809dfcec9efaf114", + "content-hash": "446bb52c448ce1f77fd6f6029e242a77", "packages": [], "packages-dev": [ { @@ -5637,27 +5637,27 @@ }, { "name": "symfony/phpunit-bridge", - "version": "v6.4.7", + "version": "v7.0.7", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "a33ca737283c76617c4089a8425c7785b344e283" + "reference": "0a0b90ba08b9a03e09ad49f8d613bdf3eca3a7a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/a33ca737283c76617c4089a8425c7785b344e283", - "reference": "a33ca737283c76617c4089a8425c7785b344e283", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/0a0b90ba08b9a03e09ad49f8d613bdf3eca3a7a9", + "reference": "0a0b90ba08b9a03e09ad49f8d613bdf3eca3a7a9", "shasum": "" }, "require": { - "php": ">=7.1.3" + "php": ">=7.2.5" }, "conflict": { "phpunit/phpunit": "<7.5|9.1.2" }, "require-dev": { "symfony/deprecation-contracts": "^2.5|^3.0", - "symfony/error-handler": "^5.4|^6.0|^7.0", + "symfony/error-handler": "^5.4|^6.4|^7.0", "symfony/polyfill-php81": "^1.27" }, "bin": [ @@ -5698,7 +5698,7 @@ "description": "Provides utilities for PHPUnit, especially user deprecation notices management", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/phpunit-bridge/tree/v6.4.7" + "source": "https://github.com/symfony/phpunit-bridge/tree/v7.0.7" }, "funding": [ { @@ -5714,7 +5714,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-04-18T09:29:19+00:00" }, { "name": "symfony/polyfill-ctype",