Closed Xirdion closed 3 years ago
If Client::$call is set to false, I am not able to create a Response.
Client::$call
The Client is calling the method _call() which will create a new Request-object and calls its method call() with Client::$call as parameter. https://github.com/mailjet/mailjet-apiv3-php/blob/v1.5.3/src/Mailjet/Client.php#L316
_call()
call()
Within Request::call() method is set to null and then used to create a new Response. https://github.com/mailjet/mailjet-apiv3-php/blob/v1.5.3/src/Mailjet/Request.php#L152
Request::call()
If false === $call:
false === $call
But the constructor of Response expects argument 2 to be a Psr\Http\Message\ResponseInterface! https://github.com/mailjet/mailjet-apiv3-php/blob/v1.5.3/src/Mailjet/Response.php#L49
Psr\Http\Message\ResponseInterface
So I am not able to create the response object.
@Xirdion Thank you for contributing, it was valid point :)
If
Client::$call
is set to false, I am not able to create a Response.The Client is calling the method
_call()
which will create a new Request-object and calls its methodcall()
withClient::$call
as parameter. https://github.com/mailjet/mailjet-apiv3-php/blob/v1.5.3/src/Mailjet/Client.php#L316Within
Request::call()
method is set to null and then used to create a new Response. https://github.com/mailjet/mailjet-apiv3-php/blob/v1.5.3/src/Mailjet/Request.php#L152If
false === $call
:But the constructor of Response expects argument 2 to be a
Psr\Http\Message\ResponseInterface
! https://github.com/mailjet/mailjet-apiv3-php/blob/v1.5.3/src/Mailjet/Response.php#L49So I am not able to create the response object.