aboutsummaryrefslogtreecommitdiff
path: root/php/src/Google/Protobuf/Internal/FileDescriptorProto.php
diff options
context:
space:
mode:
authorBrent Shaffer <betterbrent@google.com>2018-06-19 22:20:56 +0200
committerPaul Yang <TeBoring@users.noreply.github.com>2018-06-19 13:20:56 -0700
commitabac8080004ce018287275e41de40f57800f97aa (patch)
tree783d78357b35f4f68df7980adf5452850bd3c656 /php/src/Google/Protobuf/Internal/FileDescriptorProto.php
parent7a23a2ea5e058d5b814a872c5797d45f0f55a2a6 (diff)
downloadprotobuf-abac8080004ce018287275e41de40f57800f97aa.tar.gz
protobuf-abac8080004ce018287275e41de40f57800f97aa.tar.bz2
protobuf-abac8080004ce018287275e41de40f57800f97aa.zip
adds PHP typehints for message setters (#4533)php-generated-dev
Diffstat (limited to 'php/src/Google/Protobuf/Internal/FileDescriptorProto.php')
-rw-r--r--php/src/Google/Protobuf/Internal/FileDescriptorProto.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/src/Google/Protobuf/Internal/FileDescriptorProto.php b/php/src/Google/Protobuf/Internal/FileDescriptorProto.php
index cb10aa79..4b6e3a34 100644
--- a/php/src/Google/Protobuf/Internal/FileDescriptorProto.php
+++ b/php/src/Google/Protobuf/Internal/FileDescriptorProto.php
@@ -429,7 +429,7 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message
* @param \Google\Protobuf\Internal\FileOptions $var
* @return $this
*/
- public function setOptions($var)
+ public function setOptions(\Google\Protobuf\Internal\FileOptions $var = null)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FileOptions::class);
$this->options = $var;
@@ -467,7 +467,7 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message
* @param \Google\Protobuf\Internal\SourceCodeInfo $var
* @return $this
*/
- public function setSourceCodeInfo($var)
+ public function setSourceCodeInfo(\Google\Protobuf\Internal\SourceCodeInfo $var = null)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Internal\SourceCodeInfo::class);
$this->source_code_info = $var;