In PHP 5.4, ``++break++`` and ``++continue++`` no longer accept arguments that require computation. Static arguments are still okay except for zero (``++0++``).


== Noncompliant Code Example

----
$i = 0;
$break = 1;
while (++$i) {
  switch ($i) {
  case 5:
    // ...
    break $break;  // Noncompliant
  case 10:
    // ...
    break $break + 1;  // Noncompliant
    default:
        break $break;  // Noncompliant
    }
}
----


== Compliant Solution

----
$i = 0;
while (++$i) {
  switch ($i) {
  case 5:
    // ...
    break 1;
  case 10:
    // ...
    break 2;
    default:
        break;
    }
}
----



ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]
