Code Inspection: 'continue' is targeting 'switch' statement
continue statements that are targeting
switch statements. In PHP 7.3 and later, such usages are deprecated and will emit an
E_WARNING, since they are most likely the result of a programming mistake.
In PHP, such
continuestatements are equivalent to
break, that is, they end the execution of the current
In other languages, such
continuestatements behave as
continue 2in PHP, that is, they take the execution to a higher level control structure (for example, the next iteration of an outer loop).
Suppress an inspection in the editor
Position the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.