Closed
Description
Hello developers,
I make a sample code with HttPlug and i see in your docs
http://docs.php-http.org/
if (Promise::FULFILLED === $promise->getState()) {
$response = $promise->getResponse();
}
But when I execute this code an exception is throw :
Call to undefined method Http\Adapter\Guzzle6\Promise::getResponse()
I browse code and exactly I didn't see getResponse
Moreover I see in this docs
Then you can get the response of the promise if it’s in FULFILLED state with $promise->getResponse() call or get the error of the promise if it’s in REJECTED state with $promise->getRequest() call
No getRequest in code.
Old docs or I missing something ?
Thx for your response and your work