diff options
Diffstat (limited to 'php/src/Google/Protobuf/Internal/FileDescriptor.php')
-rw-r--r-- | php/src/Google/Protobuf/Internal/FileDescriptor.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/php/src/Google/Protobuf/Internal/FileDescriptor.php b/php/src/Google/Protobuf/Internal/FileDescriptor.php index 14716390..038da38c 100644 --- a/php/src/Google/Protobuf/Internal/FileDescriptor.php +++ b/php/src/Google/Protobuf/Internal/FileDescriptor.php @@ -78,12 +78,11 @@ class FileDescriptor $message_proto, $proto, "")); } foreach ($proto->getEnumType() as $enum_proto) { - $file->getEnumType()[] = - $file->addEnumType( - EnumDescriptor::buildFromProto( - $enum_proto, - $proto, - "")); + $file->addEnumType( + EnumDescriptor::buildFromProto( + $enum_proto, + $proto, + "")); } return $file; } |