From abac8080004ce018287275e41de40f57800f97aa Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 19 Jun 2018 22:20:56 +0200 Subject: adds PHP typehints for message setters (#4533) --- php/src/Google/Protobuf/Internal/FileDescriptorProto.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'php/src/Google/Protobuf/Internal/FileDescriptorProto.php') 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; -- cgit v1.2.3