Skip to content

Commit 668ec20

Browse files
committed
Use only fully qualified namespaces for rpc input methods generation
1 parent 38925a2 commit 668ec20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/DrSlump/Protobuf/Compiler/PhpGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ protected function compileService(proto\ServiceDescriptorProto $service, $ns)
399399
$s[]= ' * @param ' . $this->normalizeNS($method->getInputType()) . ' $input';
400400
$s[]= ' * @return ' . $this->normalizeNS($method->getOutputType());
401401
$s[]= ' */';
402-
$s[]= ' public function ' . $method->getName() . '(' . $this->normalizeNS($method->getInputType()) . ' $input);';
402+
$s[]= ' public function ' . $method->getName() . '(\\' . $this->normalizeNS($method->getInputType()) . ' $input);';
403403
$s[]= '';
404404
endforeach;
405405
$s[]= ' }';

0 commit comments

Comments
 (0)