mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Use continue 2 in place of continue
This commit is contained in:
parent
a5f3e20980
commit
7713c7a8d6
@ -520,7 +520,7 @@ class MethodCallChecker extends \Psalm\Checker\Statements\Expression\CallChecker
|
||||
switch (strtolower($stmt->name->name)) {
|
||||
case '__tostring':
|
||||
$return_type = Type::getString();
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
$call_map_id = strtolower(
|
||||
|
@ -143,20 +143,20 @@ class FunctionDocblockManipulator
|
||||
switch ($char) {
|
||||
case "\n":
|
||||
$in_single_line_comment = false;
|
||||
continue;
|
||||
continue 2;
|
||||
|
||||
case ':':
|
||||
if ($in_multi_line_comment || $in_single_line_comment) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
$this->return_typehint_colon_start = $i + $end_bracket_position + 1;
|
||||
|
||||
continue;
|
||||
continue 2;
|
||||
|
||||
case '/':
|
||||
if ($in_multi_line_comment || $in_single_line_comment) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
if ($chars[$i + 1] === '*') {
|
||||
@ -169,11 +169,11 @@ class FunctionDocblockManipulator
|
||||
++$i;
|
||||
}
|
||||
|
||||
continue;
|
||||
continue 2;
|
||||
|
||||
case '*':
|
||||
if ($in_single_line_comment) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
if ($chars[$i + 1] === '/') {
|
||||
@ -181,18 +181,18 @@ class FunctionDocblockManipulator
|
||||
++$i;
|
||||
}
|
||||
|
||||
continue;
|
||||
continue 2;
|
||||
|
||||
case '{':
|
||||
if ($in_multi_line_comment || $in_single_line_comment) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
break 2;
|
||||
|
||||
case '?':
|
||||
if ($in_multi_line_comment || $in_single_line_comment) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
$this->return_typehint_start = $i + $end_bracket_position + 1;
|
||||
|
@ -358,7 +358,7 @@ class ParseTree
|
||||
|
||||
if ($current_parent && $current_parent instanceof ParseTree\UnionTree) {
|
||||
$current_leaf = $current_parent;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if ($current_parent && $current_parent instanceof ParseTree\IntersectionTree) {
|
||||
@ -396,7 +396,7 @@ class ParseTree
|
||||
}
|
||||
|
||||
if ($current_parent && $current_parent instanceof ParseTree\IntersectionTree) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
$new_parent_leaf = new ParseTree\IntersectionTree($current_parent);
|
||||
|
@ -1737,7 +1737,7 @@ class Reconciler
|
||||
$parts_offset++;
|
||||
$parts[$parts_offset] = $char;
|
||||
$parts_offset++;
|
||||
continue;
|
||||
continue 2;
|
||||
|
||||
case '\'':
|
||||
case '"':
|
||||
@ -1747,7 +1747,7 @@ class Reconciler
|
||||
$parts[$parts_offset] .= $char;
|
||||
$string_char = $char;
|
||||
|
||||
continue;
|
||||
continue 2;
|
||||
|
||||
case '-':
|
||||
if ($i < $char_count - 1 && $chars[$i + 1] === '>') {
|
||||
@ -1756,7 +1756,7 @@ class Reconciler
|
||||
$parts_offset++;
|
||||
$parts[$parts_offset] = '->';
|
||||
$parts_offset++;
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
// fall through
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user