msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

`getStatusCode()` of `GraphResponse` has wrong type

Open mz-aimcom opened this issue 2 years ago • 0 comments

In https://github.com/microsoftgraph/msgraph-sdk-php/blob/b7bc52153b44d9c3db60d4b8805ece42c4e1268f/src/Http/GraphResponse.php#L54 the return type is documetned as "string". As it comes (more or less) directly from Psr\Http\Message\ResponseInterface, it should be documented as "int". (see https://github.com/php-fig/http-message/blob/master/src/ResponseInterface.php#L30)

mz-aimcom avatar Jul 31 '23 15:07 mz-aimcom