Skip to content

Commit

Permalink
Fix defaultName deprecation warning on symfony/console 6.1 (#2107)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Oct 3, 2022
1 parent 4fc4043 commit 6eb0f29
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.0'
coverage: none

- name: Get composer cache directory
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/Breakpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
namespace Phinx\Console\Command;

use InvalidArgumentException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'breakpoint')]
class Breakpoint extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
use Phinx\Config\NamespaceAwareInterface;
use Phinx\Util\Util;
use RuntimeException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\ConfirmationQuestion;

#[AsCommand(name: 'create')]
class Create extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@

use InvalidArgumentException;
use RuntimeException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'init')]
class Init extends Command
{
protected const FILE_NAME = 'phinx';
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/ListAliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
namespace Phinx\Console\Command;

use Phinx\Util\Util;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'list:aliases')]
class ListAliases extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/Migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@

use DateTime;
use Exception;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Throwable;

#[AsCommand(name: 'migrate')]
class Migrate extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/Rollback.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

use DateTime;
use InvalidArgumentException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'rollback')]
class Rollback extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/SeedCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
use Phinx\Config\NamespaceAwareInterface;
use Phinx\Util\Util;
use RuntimeException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\ConfirmationQuestion;

#[AsCommand(name: 'seed:create')]
class SeedCreate extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/SeedRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

namespace Phinx\Console\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'seed:run')]
class SeedRun extends AbstractCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Phinx/Console/Command/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

namespace Phinx\Console\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'status')]
class Status extends AbstractCommand
{
/**
Expand Down
5 changes: 2 additions & 3 deletions src/Phinx/Console/Command/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
use InvalidArgumentException;
use Phinx\Migration\Manager\Environment;
use Phinx\Util\Util;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
* @author Leonid Kuzmin <lndkuzmin@gmail.com>
*/
#[AsCommand(name: 'test')]
class Test extends AbstractCommand
{
/**
Expand Down

0 comments on commit 6eb0f29

Please sign in to comment.