diff options
author | Brent Shaffer <betterbrent@google.com> | 2017-07-17 09:14:46 -0700 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2017-07-17 09:14:46 -0700 |
commit | 324b20a49170cb38d15ef243bc044026adb54ae1 (patch) | |
tree | 7b2e7a82b26d6246d48e15b2d32e37c64ecefef9 /php/src/Google/Protobuf/Internal/EnumDescriptorProto.php | |
parent | 29ff49f5345693bd04aa37654aa002054d1b9780 (diff) | |
download | protobuf-324b20a49170cb38d15ef243bc044026adb54ae1.tar.gz protobuf-324b20a49170cb38d15ef243bc044026adb54ae1.tar.bz2 protobuf-324b20a49170cb38d15ef243bc044026adb54ae1.zip |
remove pass by reference for php setters (#3344)
* remove pass by reference for php setters
* comments out memory leak test
Diffstat (limited to 'php/src/Google/Protobuf/Internal/EnumDescriptorProto.php')
-rw-r--r-- | php/src/Google/Protobuf/Internal/EnumDescriptorProto.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php b/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php index 6cdaf2df..adc21fc6 100644 --- a/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php @@ -81,7 +81,7 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message * @param \Google\Protobuf\Internal\EnumValueDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ - public function setValue(&$var) + public function setValue($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumValueDescriptorProto::class); $this->value = $arr; @@ -109,7 +109,7 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message * @param \Google\Protobuf\Internal\EnumOptions $var * @return $this */ - public function setOptions(&$var) + public function setOptions($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumOptions::class); $this->options = $var; |