From 324b20a49170cb38d15ef243bc044026adb54ae1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 17 Jul 2017 09:14:46 -0700 Subject: remove pass by reference for php setters (#3344) * remove pass by reference for php setters * comments out memory leak test --- php/src/Google/Protobuf/Internal/MessageOptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php/src/Google/Protobuf/Internal/MessageOptions.php') diff --git a/php/src/Google/Protobuf/Internal/MessageOptions.php b/php/src/Google/Protobuf/Internal/MessageOptions.php index 3677ca38..0a0bfb2d 100644 --- a/php/src/Google/Protobuf/Internal/MessageOptions.php +++ b/php/src/Google/Protobuf/Internal/MessageOptions.php @@ -311,7 +311,7 @@ class MessageOptions extends \Google\Protobuf\Internal\Message * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ - public function setUninterpretedOption(&$var) + public function setUninterpretedOption($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class); $this->uninterpreted_option = $arr; -- cgit v1.2.3