Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove overrides of deprecated static Command properties #1370

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#[AsCommand(name: 'migrations:current', description: 'Outputs the current version')]
final class CurrentCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:current';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions lib/Doctrine/Migrations/Tools/Console/Command/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
#[AsCommand(name: 'migrations:diff', description: 'Generate a migration by comparing your current database to your mapping information.')]
final class DiffCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:diff';

protected function configure(): void
{
parent::configure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
#[AsCommand(name: 'migrations:dump-schema', description: 'Dump the schema for your database to a migration.')]
final class DumpSchemaCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:dump-schema';

protected function configure(): void
{
parent::configure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
#[AsCommand(name: 'migrations:execute', description: 'Execute one or more migration versions up or down manually.')]
final class ExecuteCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:execute';

protected function configure(): void
{
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#[AsCommand(name: 'migrations:generate', description: 'Generate a blank migration class.')]
final class GenerateCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:generate';

protected function configure(): void
{
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#[AsCommand(name: 'migrations:latest', description: 'Outputs the latest version')]
final class LatestCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:latest';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions lib/Doctrine/Migrations/Tools/Console/Command/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
#[AsCommand(name: 'migrations:list', description: 'Display a list of all available migrations and their status.')]
final class ListCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:list';

protected function configure(): void
{
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
#[AsCommand(name: 'migrations:migrate', description: 'Execute a migration to a specified version or the latest available version.')]
final class MigrateCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:migrate';

protected function configure(): void
{
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#[AsCommand(name: 'migrations:rollup', description: 'Rollup migrations by deleting all tracked versions and insert the one version that exists.')]
final class RollupCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:rollup';

protected function configure(): void
{
parent::configure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
#[AsCommand(name: 'migrations:status', description: 'View the status of a set of migrations.')]
final class StatusCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:status';

protected function configure(): void
{
$this
->setName('migrations:status')
->setAliases(['status'])
->setDescription('View the status of a set of migrations.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
#[AsCommand(name: 'migrations:sync-metadata-storage', description: 'Ensures that the metadata storage is at the latest version.')]
final class SyncMetadataCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:sync-metadata-storage';

protected function configure(): void
{
parent::configure();

$this
->setName('migrations:sync-metadata-storage')
->setAliases(['sync-metadata-storage'])
->setDescription('Ensures that the metadata storage is at the latest version.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
#[AsCommand(name: 'migrations:up-to-date', description: 'Tells you if your schema is up-to-date.')]
final class UpToDateCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:up-to-date';

protected function configure(): void
{
$this
->setName('migrations:up-to-date')
->setAliases(['up-to-date'])
->setDescription('Tells you if your schema is up-to-date.')
->addOption('fail-on-unregistered', 'u', InputOption::VALUE_NONE, 'Whether to fail when there are unregistered extra migrations found')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@
#[AsCommand(name: 'migrations:version', description: 'Manually add and delete migration versions from the version table.')]
final class VersionCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:version';

private bool $markMigrated;

protected function configure(): void
{
$this
->setName('migrations:version')
->setAliases(['version'])
->setDescription('Manually add and delete migration versions from the version table.')
->addArgument(
Expand Down