diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-05-29 15:30:47 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2017-06-20 15:06:22 -0700 |
commit | dba8928ff53ae372bba3d928a6145754a97238d5 (patch) | |
tree | 4177a3467bd1120fa99e5dfccb59c7b1f0c1b7ca /php/src | |
parent | bf04c83267619b618e7112b242f424f8b3e785b6 (diff) | |
download | protobuf-dba8928ff53ae372bba3d928a6145754a97238d5.tar.gz protobuf-dba8928ff53ae372bba3d928a6145754a97238d5.tar.bz2 protobuf-dba8928ff53ae372bba3d928a6145754a97238d5.zip |
Add ARRAY for reserved name (#3150)
Diffstat (limited to 'php/src')
-rw-r--r-- | php/src/Google/Protobuf/descriptor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php/src/Google/Protobuf/descriptor.php b/php/src/Google/Protobuf/descriptor.php index fb69eda0..35e4929b 100644 --- a/php/src/Google/Protobuf/descriptor.php +++ b/php/src/Google/Protobuf/descriptor.php @@ -236,7 +236,7 @@ function getClassNamePrefix( return $prefix; } - $reserved_words = array("Empty"); + $reserved_words = array("Empty", "ECHO", "ARRAY"); foreach ($reserved_words as $reserved_word) { if ($classname === $reserved_word) { if ($file_proto->getPackage() === "google.protobuf") { |