Skip to content

Commit

Permalink
fix: missing comma in PHP names.c and generator.cc (#8787)
Browse files Browse the repository at this point in the history
* Update names.c

* Update php_generator.cc
  • Loading branch information
bshaffer committed Jul 7, 2021
1 parent 4b77b73 commit d2c82df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/ext/google/protobuf/names.c
Expand Up @@ -77,7 +77,7 @@ const char *const kReservedNames[] = {
"do", "echo", "else", "elseif", "empty",
"enddeclare", "endfor", "endforeach", "endif", "endswitch",
"endwhile", "eval", "exit", "extends", "final",
"finally", "fn" "for", "foreach", "function",
"finally", "fn", "for", "foreach", "function",
"if", "implements", "include", "include_once", "instanceof",
"global", "goto", "insteadof", "interface", "isset",
"list", "match", "namespace", "new", "or",
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/php/php_generator.cc
Expand Up @@ -61,7 +61,7 @@ const char* const kReservedNames[] = {
"print", "private", "protected", "public", "require",
"require_once", "return", "static", "switch", "throw",
"trait", "try", "unset", "use", "var",
"while", "xor", "yield" "int", "float",
"while", "xor", "yield", "int", "float",
"bool", "string", "true", "false", "null",
"void", "iterable"};
const char* const kValidConstantNames[] = {
Expand Down

0 comments on commit d2c82df

Please sign in to comment.