Merge pull request #3634 from sebastic/break-continue

Use continue <N> in case statements to fix ErrorException with PHP 7.3.
This commit is contained in:
Markus Frosch 2018-12-04 16:37:47 +01:00 committed by GitHub
commit 8ebf535580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {