Skip to content

Commit 71fb5c5

Browse files
Support PHP 7.3
As per https://wiki.php.net/rfc/continue_on_switch_deprecation the use of `continue` is deprecate in switch statements and should use either break or continue 2.
1 parent 8a457eb commit 71fb5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeSniffer/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ private static function _createTokenMap(&$tokens, $tokenizer, $eolChar)
17631763
}
17641764
break;
17651765
default:
1766-
continue;
1766+
continue 2;
17671767
}//end switch
17681768
}//end for
17691769

@@ -2880,7 +2880,7 @@ public function getMethodParameters($stackPtr)
28802880
// If it's null, then there must be no parameters for this
28812881
// method.
28822882
if ($currVar === null) {
2883-
continue;
2883+
continue 2;
28842884
}
28852885

28862886
$vars[$paramCount] = array();

0 commit comments

Comments
 (0)