diff --git a/src/wp-includes/pomo/plural-forms.php b/src/wp-includes/pomo/plural-forms.php index cabc807180..a66d00f6de 100644 --- a/src/wp-includes/pomo/plural-forms.php +++ b/src/wp-includes/pomo/plural-forms.php @@ -207,7 +207,7 @@ class Plural_Forms { $span = strspn( $str, self::NUM_CHARS, $pos ); $output[] = array( 'value', intval( substr( $str, $pos, $span ) ) ); $pos += $span; - continue; + break; } throw new Exception( sprintf( 'Unknown symbol "%s"', $next ) ); diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 0a9c44ee7a..db1fac7229 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -498,7 +498,7 @@ function benchmark_pcre_backtracking( $pattern, $subject, $strategy ) { case PREG_NO_ERROR: return $i; case PREG_BACKTRACK_LIMIT_ERROR: - continue; + break; case PREG_RECURSION_LIMIT_ERROR: trigger_error( 'PCRE recursion limit encountered before backtrack limit.' ); return;