Open stingbo opened 1 month ago
Hello @stingbo, thanks for reporting. I will check soon! Please don't hesitate to create another issue if you face another problem.
Hello @stingbo, technically sendRequest
could not return null according to implementation.
class Transport implements ClientInterface
{
....
public function sendRequest(RequestInterface $request): ResponseInterface
{
$request = $this->prepareHeaders($request);
return $this->client->sendRequest($request);
}
}
So, for this reason, we don't need to check, especially here, for a null value. Let's close the ticket if you don't have any objection.
if sendRequest return null, new Response($res); will report error