Skip to content

Commit

Permalink
Merge pull request #4 from amboss-mededu/php73-fixes
Browse files Browse the repository at this point in the history
Fix continue 2 in switch cases inside loops
  • Loading branch information
obukhov authored Mar 6, 2020
2 parents f5aad72 + d9b6665 commit 28e2b8f
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 28e2b8f

Please sign in to comment.