[HttpClient][PHPDoc] Fix 2 remaining return mixed

This commit is contained in:
Thomas Calvet 2021-04-11 17:25:07 +02:00
parent 7ce1dda109
commit 97a43e1dab
2 changed files with 3 additions and 5 deletions

View File

@ -49,10 +49,8 @@ final class HttplugPromise implements HttplugPromiseInterface
/**
* {@inheritdoc}
*
* @return Psr7ResponseInterface|mixed
*/
public function wait($unwrap = true)
public function wait($unwrap = true): ?Psr7ResponseInterface
{
$result = $this->promise->wait($unwrap);

View File

@ -104,8 +104,8 @@ interface ResponseInterface
*
* Other info SHOULD be named after curl_getinfo()'s associative return value.
*
* @return array|mixed An array of all available info, or one of them when $type is
* provided, or null when an unsupported type is requested
* @return mixed An array of all available info, or one of them when $type is
* provided, or null when an unsupported type is requested
*/
public function getInfo(string $type = null);
}