Skip to content

Commit

Permalink
Avoid warnings on PHP7.3 regarding continue within switch block.
Browse files Browse the repository at this point in the history
Fix actual intention here, as well. These should continue the outer
loop, and not just break out of the switch block.
  • Loading branch information
mrubinsk committed Mar 2, 2019
1 parent 2511da1 commit fc609d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Horde/Mail/Rfc822.php
Expand Up @@ -571,7 +571,7 @@ protected function _rfc822ParseQuotedString(&$str)
if (substr($str, -1) == "\r") {
$str = substr($str, 0, -1);
}
continue;
continue 2;

case '\\':
if (($chr = $this->_curr(true)) === false) {
Expand Down Expand Up @@ -737,7 +737,7 @@ protected function _rfc822SkipLwsp($advance = false)
case "\r":
case "\t":
++$this->_ptr;
continue;
continue 2;

case '(':
$this->_rfc822SkipComment();
Expand Down Expand Up @@ -765,7 +765,7 @@ protected function _rfc822SkipComment()
switch ($chr) {
case '(':
++$level;
continue;
continue 2;

case ')':
if (--$level == 0) {
Expand Down

0 comments on commit fc609d7

Please sign in to comment.