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:
Bas Couwenberg 2018-11-23 18:26:09 +01:00
parent 63cb9d7283
commit 075eb17005
2 changed files with 3 additions and 3 deletions

View File

@ -686,7 +686,7 @@ class Module
case 'depends':
if (strpos($val, ' ') === false) {
$metadata->depends[$val] = true;
continue;
continue 2;
}
$parts = preg_split('/,\s+/', $val);

View File

@ -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 {