Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31522

Command `ezplatform:migrate:legacy_matrix` throws an error after execution

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.0.0
    • 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> 

      Attachments

        Activity

          People

            Unassigned Unassigned
            l0rdj l0rdj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: