Update guzzle to 6.5

This commit is contained in:
Pierre Rudloff 2020-05-13 21:39:38 +02:00
parent bc695cfa15
commit 74db3b9ad0
6 changed files with 144 additions and 86 deletions

View file

@ -10,8 +10,7 @@ use Alltube\Exception\EmptyUrlException;
use Alltube\Exception\PasswordException;
use Exception;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
use stdClass;
use Symfony\Component\Process\Process;
@ -615,10 +614,9 @@ class Video
*
* @param array $headers HTTP headers of the request
*
* @return Response
* @return ResponseInterface
* @throws EmptyUrlException
* @throws PasswordException
* @throws GuzzleException
*/
public function getHttpResponse(array $headers = [])
{

View file

@ -6,7 +6,7 @@
namespace Alltube\Stream;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
/**
@ -18,16 +18,16 @@ class YoutubeChunkStream implements StreamInterface
/**
* HTTP response containing the video chunk.
*
* @var Response
* @var ResponseInterface
*/
private $response;
/**
* YoutubeChunkStream constructor.
*
* @param Response $response HTTP response containing the video chunk
* @param ResponseInterface $response HTTP response containing the video chunk
*/
public function __construct(Response $response)
public function __construct(ResponseInterface $response)
{
$this->response = $response;
}