* fixed warnings when migrating to php v7.3
 * https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core.continue-targeting-switch
This commit is contained in:
jackpoz
2020-01-02 19:43:08 +01:00
committed by Sarjuuk
parent d3c5011694
commit 1c08e5d9cf
3 changed files with 4 additions and 4 deletions

View File

@@ -125,7 +125,7 @@ class CommunityContent
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break; case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
case TYPE_SOUND: $obj = new SoundList($cnd); break; case TYPE_SOUND: $obj = new SoundList($cnd); break;
case TYPE_ICON: $obj = new IconList($cnd); break; case TYPE_ICON: $obj = new IconList($cnd); break;
default: continue; default: continue 2;
} }
foreach ($obj->iterate() as $id => $__) foreach ($obj->iterate() as $id => $__)

View File

@@ -1029,7 +1029,7 @@ class Util
break; break;
} }
else else
continue; continue 3;
} }
case CND_ZONEID: // 4 case CND_ZONEID: // 4
case CND_AREAID: // 23 case CND_AREAID: // 23
@@ -1084,7 +1084,7 @@ class Util
else if ($c['ConditionValue1'] == 67) // Horde else if ($c['ConditionValue1'] == 67) // Horde
$c['ConditionValue1'] = 2; $c['ConditionValue1'] = 2;
else else
continue; continue 2;
} }
$res = [$c['NegativeCondition'] ? -$c['ConditionTypeOrReference'] : $c['ConditionTypeOrReference']]; $res = [$c['NegativeCondition'] ? -$c['ConditionTypeOrReference'] : $c['ConditionTypeOrReference']];

View File

@@ -854,7 +854,7 @@ class GenericPage
case TYPE_USER: $obj = new UserList($cnd); break; case TYPE_USER: $obj = new UserList($cnd); break;
case TYPE_EMOTE: $obj = new EmoteList($cnd); break; case TYPE_EMOTE: $obj = new EmoteList($cnd); break;
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break; case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
default: continue; default: continue 2;
} }
$this->extendGlobalData($obj->getJSGlobals(GLOBALINFO_SELF)); $this->extendGlobalData($obj->getJSGlobals(GLOBALINFO_SELF));