Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
Description
Because of Symfony 5, all the commands need to return an exit code: https://github.com/symfony/symfony/blob/5.0/src/Symfony/Component/Console/Command/Command.php#L153
To reproduce this error, just try to run
php bin/console ezplatform:migrate:legacy_matrix
And you will get
php bin/console ezplatform:migrate:legacy_matrix --no-interaction --force // Migrating legacy ezmatrix fieldtype [OK] Done. In Command.php line 258: Return value of "EzSystems\EzPlatformMatrixFieldtypeBundle\Command\MigrateLegacyMatrixCommand::execute()" must be of the type int, NULL returned. ezplatform:migrate:legacy_matrix [-c|--iteration-count [ITERATION-COUNT]] [-f|--force] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--siteaccess [SITEACCESS]] [--] <command>