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

Warning: "continue" targeting switch is equivalent to "break" [...] #28750

Closed
ghost opened this issue Oct 6, 2018 · 4 comments
Closed

Warning: "continue" targeting switch is equivalent to "break" [...] #28750

ghost opened this issue Oct 6, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 6, 2018

Symfony version(s) affected: 4.1.6.1

Description
(I'm not sure if this is a bug). I tried to create a new project following what the Installing & Setting up the Symfony Framework section of the docs told me to do (run composer create-project symfony/website-skeleton my-project). It installed a bunch of dependencies but in the end I got this:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!  In UnitOfWork.php line 2718:
!!                                                                                 
!!    Warning: "continue" targeting switch is equivalent to "break". Did you mean  
!!     to use "continue 2"?                                                        
!!                                                                                 
!!  
!!  
Script @auto-scripts was called via post-install-cmd

How to reproduce
All I did was run composer create-project symfony/website-skeleton my-project.

@nicolas-grekas
Copy link
Member

That's because you're using PHP 7.3.
This issue is already fixed in the Doctrine repository (it's not related to Symfony).
It will be fixed once they tag their next version.

@ghost
Copy link
Author

ghost commented Oct 6, 2018

Ok. Just so you know, the app runs fine. Thanks!

@gudinoemiliano
Copy link

gudinoemiliano commented Oct 10, 2018

Hi, @nicolas-grekas do you know when that version will be available?

@nicolas-grekas
Copy link
Member

Not at all, I'm not involved into doctrine much, you should ask there.

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

2 participants