Skip to content

Commit

Permalink
Simplify code for parsing promoted parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Aug 24, 2024
1 parent edcab44 commit e8e38f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/lang/ast/syntax/PHP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ private function parameters($parse) {
$promote= [];
do {
$promote[]= $this->modifier($parse);
} while ('name' === $parse->token->kind && isset($promotion[$parse->token->value]));
} while (isset($promotion[$parse->token->value]));
} else {
$promote= null;
}
Expand Down

0 comments on commit e8e38f9

Please sign in to comment.