Skip to content

Commit

Permalink
Fix continue 2 in switch cases inside loops
Browse files Browse the repository at this point in the history
  • Loading branch information
obukhov committed Feb 13, 2020
1 parent d252f02 commit d9b6665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/Query/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function tokenizeQuery($query)
break;

case 'by':
continue;
continue 2;

default:
if ( ! isset($p)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/RawSql.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function parseDqlQuery($query)
}
break;
case 'by':
continue;
continue 2;
default:
//not a keyword so we add it to the previous type.
if ( ! isset($parts[$type][0])) {
Expand Down

0 comments on commit d9b6665

Please sign in to comment.