Skip to content

Commit 3a98175

Browse files
authored
docs: fix phpdoc for some method return types (#2113)
1 parent 11871e9 commit 3a98175

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ vendor
66
examples/testfile-small.txt
77
examples/testfile.txt
88
tests/.apiKey
9+
.idea/

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public function prepareScopes()
856856
* @param $request RequestInterface|\Google\Http\Batch
857857
* @param string $expectedClass
858858
* @throws \Google\Exception
859-
* @return object of the type of the expected class or Psr\Http\Message\ResponseInterface.
859+
* @return mixed|$expectedClass|ResponseInterface
860860
*/
861861
public function execute(RequestInterface $request, $expectedClass = null)
862862
{

src/Http/REST.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class REST
4141
* @param string $expectedClass
4242
* @param array $config
4343
* @param array $retryMap
44-
* @return array decoded result
44+
* @return mixed decoded result
4545
* @throws \Google\Service\Exception on server side error (ie: not authenticated,
4646
* invalid or malformed post body, invalid url)
4747
*/

src/Service/Resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct($service, $serviceName, $resourceName, $resource)
8080
* @param $name
8181
* @param $arguments
8282
* @param $expectedClass - optional, the expected class name
83-
* @return Request|$expectedClass
83+
* @return mixed|$expectedClass|ResponseInterface|RequestInterface
8484
* @throws \Google\Exception
8585
*/
8686
public function call($name, $arguments, $expectedClass = null)

0 commit comments

Comments
 (0)