Phinx: "Phinx\Console\Command\Init" cannot have an empty name (symfony/console >= 4.3.4)

Created on 28 Aug 2019  路  2Comments  路  Source: cakephp/phinx

PHP Fatal error:  Uncaught Symfony\Component\Console\Exception\LogicException: The command defined in "Phinx\Console\Command\Init" cannot have an empty name. in /var/www/localhost/htdocs/vendor/symfony/console/Command/Command.php:453
Stack trace:
#0 /var/www/localhost/htdocs/vendor/robmorgan/phinx/src/Phinx/Console/Command/Init.php(47): Symfony\Component\Console\Command\Command->getName()
#1 /var/www/localhost/htdocs/vendor/symfony/console/Command/Command.php(77): Phinx\Console\Command\Init->configure()
#2 /var/www/localhost/htdocs/vendor/robmorgan/phinx/src/Phinx/Console/PhinxApplication.php(60): Symfony\Component\Console\Command\Command->__construct()
#3 /var/www/localhost/htdocs/vendor/nartex/nx-phinx/bin/nx-phinx(12): Phinx\Console\PhinxApplication->__construct()
#4 {main}
  thrown in /var/www/localhost/htdocs/vendor/symfony/console/Command/Command.php on line 453

With composer json:

{
    "require": {
        "robmorgan/phinx": "~0.10"
    },
}
composer info | grep console
symfony/console                     v4.3.4              Symfony Console C...

When symfony/console is downgraded to v4.3.3:

{
    "require": {
        "robmorgan/phinx": "~0.10",
        "symfony/console": "=4.3.3"
    },
}

It works. I guess symfony/console v4.3.4 introduces a breaking change with phinx.

Most helpful comment

We released a fix today.

All 2 comments

We released a fix today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshribakoff picture joshribakoff  路  15Comments

ylynfatt picture ylynfatt  路  82Comments

alex-barylski picture alex-barylski  路  14Comments

SergeC picture SergeC  路  13Comments

saada picture saada  路  14Comments