Use continue <N> in case statements to fix ErrorException with PHP 7.3.
``` Fatal error: Uncaught ErrorException: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? ```
This commit is contained in:
parent
63cb9d7283
commit
075eb17005
|
@ -686,7 +686,7 @@ class Module
|
|||
case 'depends':
|
||||
if (strpos($val, ' ') === false) {
|
||||
$metadata->depends[$val] = true;
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
$parts = preg_split('/,\s+/', $val);
|
||||
|
|
|
@ -64,7 +64,7 @@ class IniParser
|
|||
switch ($state) {
|
||||
case self::LINE_START:
|
||||
if (ctype_space($s)) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
switch ($s) {
|
||||
case '[':
|
||||
|
@ -130,7 +130,7 @@ class IniParser
|
|||
|
||||
case self::DIRECTIVE_VALUE_START:
|
||||
if (ctype_space($s)) {
|
||||
continue;
|
||||
continue 2;
|
||||
} elseif ($s === '"') {
|
||||
$state = self::DIRECTIVE_VALUE_QUOTED;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue