diff options
author | Bo Yang <teboring@google.com> | 2018-07-13 03:44:49 +0000 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2018-07-13 05:47:10 +0000 |
commit | 51c188c2ccb0f9dac475a50c77c4f57ab96fbc4a (patch) | |
tree | 4001fb62bec322891c9e591848f8f5d1e47d81a6 /php/src/Google/Protobuf/Internal | |
parent | f21d4d6830a935da99c9aa107827c1d827768121 (diff) | |
download | protobuf-51c188c2ccb0f9dac475a50c77c4f57ab96fbc4a.tar.gz protobuf-51c188c2ccb0f9dac475a50c77c4f57ab96fbc4a.tar.bz2 protobuf-51c188c2ccb0f9dac475a50c77c4f57ab96fbc4a.zip |
Fix php tests
Diffstat (limited to 'php/src/Google/Protobuf/Internal')
-rw-r--r-- | php/src/Google/Protobuf/Internal/GPBUtil.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/php/src/Google/Protobuf/Internal/GPBUtil.php b/php/src/Google/Protobuf/Internal/GPBUtil.php index b75d9bab..ec0bf6bd 100644 --- a/php/src/Google/Protobuf/Internal/GPBUtil.php +++ b/php/src/Google/Protobuf/Internal/GPBUtil.php @@ -305,11 +305,8 @@ class GPBUtil $name, $file_proto) { - $parts = explode('.', $name); - foreach ($parts as $i => $part) { - $parts[$i] = static::getClassNamePrefix($parts[$i], $file_proto) . $parts[$i]; - } - return implode('\\', $parts); + $classname = implode('_', explode('.', $name)); + return static::getClassNamePrefix($classname, $file_proto) . $classname; } public static function getClassNameWithoutPackage( |