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

v3.0.x not working on PHP 7.3 #9623

Closed
stefandoorn opened this issue Feb 20, 2019 · 7 comments
Closed

v3.0.x not working on PHP 7.3 #9623

stefandoorn opened this issue Feb 20, 2019 · 7 comments
Assignees

Comments

@stefandoorn
Copy link
Contributor

When doing a composer install:

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

In UnitOfWork.php line 2636:
                                                                               
  Warning: "continue" targeting switch is equivalent to "break". Did you mean  
   to use "continue 2"?                                                        
                                                                               

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception

                                                                                   
  [RuntimeException]                                                               
  An error occurred when executing the "'cache:clear --no-warmup'" command:        
                                                                                   
                                                                                   
                                                                                   
                                                                                   
  In UnitOfWork.php line 2636:                                                     
                                                                                   
    Warning: "continue" targeting switch is equivalent to "break". Did you mean    
     to use "continue 2"?                                                          
                                                                                   

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

The command '/bin/sh -c /usr/local/bin/composer install --no-dev --classmap-authoritative --no-suggest --no-progress' returned a non-zero code: 1
ERROR: Job failed: command terminated with exit code 1

Fix is described here and released in doctrine/orm version 2.6.3: doctrine/orm#7402. Akeneo requires doctrine/orm in version 2.5.14 though.

@stefandoorn stefandoorn changed the title v3.0.4 not working on PHP 7.3 v3.0.x not working on PHP 7.3 Feb 20, 2019
@jmleroux jmleroux self-assigned this Feb 24, 2019
@jjanvier
Copy link
Contributor

Hello @stefandoorn,

The problem is related to some of our Doctrine dependencies that are not compatible with PHP 7.3

This PR #9560 should fix the problem.

@jmleroux
Copy link
Contributor

This PR #9560 should fix the problem.

On master...

@stefandoorn
Copy link
Contributor Author

Great, thanks :-)

@stefandoorn
Copy link
Contributor Author

@jmleroux Will this mean it will land in e.g. v3.1?

@unreal4u
Copy link

The same happens for the LTS 2.3: will this fix make it to the 2.3 branch?

@jjanvier
Copy link
Contributor

@stefandoorn yes, this fix will be land in 3.1 and in the next LTS (3.3)

@unreal4u no, we won't change the requirements of the current 2.3 LTS in a patch.

@devkbsc
Copy link

devkbsc commented Jun 4, 2019

I think this is like a loop! in the both issues it's provided a link problem fixed #9560 ,

but i didn't see any solution on the pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants