Commit 0478a71c authored by Etienne CHAMPETIER's avatar Etienne CHAMPETIER

ZP-795 hhvm fix: use break instead of continue in switch.

Released under the Affero GNU General Public License (AGPL) version 3.

in a switch this is equivalent, but hhvm complains about it
http://php.net/manual/en/control-structures.switch.php

In PHP, 'continue;' inside a switch statement is equivalent to 'break;'.
Hack does not support this; use 'break' if that is what you meant. (NastCheck[3006])
parent 8f902ffc
...@@ -384,7 +384,7 @@ class WBXMLDecoder extends WBXMLDefs { ...@@ -384,7 +384,7 @@ class WBXMLDecoder extends WBXMLDefs {
switch($byte) { switch($byte) {
case WBXML_SWITCH_PAGE: case WBXML_SWITCH_PAGE:
$this->tagcp = $this->getByte(); $this->tagcp = $this->getByte();
continue; break;
case WBXML_END: case WBXML_END:
$element[EN_TYPE] = EN_TYPE_ENDTAG; $element[EN_TYPE] = EN_TYPE_ENDTAG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment