mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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:
commit
8ebf535580
library/Icinga
@ -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…
x
Reference in New Issue
Block a user