Skip to content

Commit

Permalink
Fix @return documentation of ODataRequest::execute()
Browse files Browse the repository at this point in the history
This documents the return type change that was introduced with version 0.7.0.
  • Loading branch information
cweiske committed Sep 29, 2023
1 parent c88701d commit f6454a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/ODataClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,12 @@ public function delete($requestUri)
* @param string $requestUri
* @param mixed $body
*
* @return IODataRequest
* @return If $entityReturnType === 'stream': GuzzleHttp\Psr7\Response
* Otherwise: array with two values
* - First value: array of objects
* .. of class $entityReturnType if $entityReturnType !== false
* .. of class ODataResponse if $entityReturnType === false
* - Second value: string containing the "next link" URL
*
* @throws ODataException
*/
Expand Down
9 changes: 6 additions & 3 deletions src/ODataRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,12 @@ public function setTimeout($timeout)
*
* @throws ODataException if response is invalid
*
* @return array array of objects
* of class $returnType if $returnType !== false
* of class ODataResponse if $returnType === false
* @return If $returnType === 'stream': GuzzleHttp\Psr7\Response
* Otherwise: array with two values
* - First value: array of objects
* .. of class $returnType if $returnType !== false
* .. of class ODataResponse if $returnType === false
* - Second value: string containing the "next link" URL
*/
public function execute()
{
Expand Down

0 comments on commit f6454a5

Please sign in to comment.