Skip to content

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

@ghost

Description

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.

Activity

nicolas-grekas

nicolas-grekas commented on Oct 6, 2018

@nicolas-grekas
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

ghost commented on Oct 6, 2018

@ghost

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

gudinoemiliano

gudinoemiliano commented on Oct 10, 2018

@gudinoemiliano

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

nicolas-grekas

nicolas-grekas commented on Oct 10, 2018

@nicolas-grekas
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nicolas-grekas@gudinoemiliano

        Issue actions

          Warning: "continue" targeting switch is equivalent to "break" [...] · Issue #28750 · symfony/symfony