aboutsummaryrefslogtreecommitdiff
path: root/php/src/Google/Protobuf/descriptor.php
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-05-29 15:30:47 -0700
committerBo Yang <teboring@google.com>2017-06-20 15:06:22 -0700
commitdba8928ff53ae372bba3d928a6145754a97238d5 (patch)
tree4177a3467bd1120fa99e5dfccb59c7b1f0c1b7ca /php/src/Google/Protobuf/descriptor.php
parentbf04c83267619b618e7112b242f424f8b3e785b6 (diff)
downloadprotobuf-dba8928ff53ae372bba3d928a6145754a97238d5.tar.gz
protobuf-dba8928ff53ae372bba3d928a6145754a97238d5.tar.bz2
protobuf-dba8928ff53ae372bba3d928a6145754a97238d5.zip
Add ARRAY for reserved name (#3150)
Diffstat (limited to 'php/src/Google/Protobuf/descriptor.php')
-rw-r--r--php/src/Google/Protobuf/descriptor.php2
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") {