Selaa lähdekoodia

Correct @return in Any.unpack docblock (#7089)

As per https://docs.phpdoc.org/latest/references/phpdoc/tags/return.html, the first token after the @return tag should be the return type.
Andres Valdes 5 vuotta sitten
vanhempi
commit
35febfc2e9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      php/src/Google/Protobuf/Any.php

+ 1 - 1
php/src/Google/Protobuf/Any.php

@@ -251,7 +251,7 @@ class Any extends \Google\Protobuf\Internal\Message
      * targeted message type. If failed, an error will be thrown. Otherwise,
      * targeted message type. If failed, an error will be thrown. Otherwise,
      * the method will create a message of the targeted type and fill it with
      * the method will create a message of the targeted type and fill it with
      * the decoded value in Any.
      * the decoded value in Any.
-     * @return unpacked message
+     * @return Message unpacked message
      * @throws \Exception Type url needs to be type.googleapis.com/fully-qualified.
      * @throws \Exception Type url needs to be type.googleapis.com/fully-qualified.
      * @throws \Exception Class hasn't been added to descriptor pool.
      * @throws \Exception Class hasn't been added to descriptor pool.
      * @throws \Exception cannot decode data in value field.
      * @throws \Exception cannot decode data in value field.