aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/src/Google/Protobuf/Internal/OneofDescriptor.php
diff options
context:
space:
mode:
authorGravatar Brent Shaffer <betterbrent@google.com>2017-08-01 09:42:46 -0700
committerGravatar Paul Yang <TeBoring@users.noreply.github.com>2017-08-01 09:42:46 -0700
commitd32f5b4de3501e1bf3c0bc98d8e74219d47ebe69 (patch)
treed99b00bb2ec87ac22f6b523aaac009901f840b5f /php/src/Google/Protobuf/Internal/OneofDescriptor.php
parent072431452a365450c607e9503f51786be44ecf7f (diff)
Removes unnecessary pass-by-references in PHP internal classes (#3433)
Diffstat (limited to 'php/src/Google/Protobuf/Internal/OneofDescriptor.php')
-rw-r--r--php/src/Google/Protobuf/Internal/OneofDescriptor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/src/Google/Protobuf/Internal/OneofDescriptor.php b/php/src/Google/Protobuf/Internal/OneofDescriptor.php
index 04988737..57961f39 100644
--- a/php/src/Google/Protobuf/Internal/OneofDescriptor.php
+++ b/php/src/Google/Protobuf/Internal/OneofDescriptor.php
@@ -48,7 +48,7 @@ class OneofDescriptor
return $this->name;
}
- public function addField(&$field)
+ public function addField(Descriptor $field)
{
$this->fields[] = $field;
}