phpstan update
Better typying
This commit is contained in:
parent
74db3b9ad0
commit
6adc1df213
17 changed files with 166 additions and 158 deletions
|
@ -41,7 +41,7 @@ class YoutubeChunkStream implements StreamInterface
|
|||
*/
|
||||
public function read($length)
|
||||
{
|
||||
$size = $this->response->getHeader('Content-Length')[0];
|
||||
$size = intval($this->response->getHeader('Content-Length')[0]);
|
||||
if ($size - $this->tell() < $length) {
|
||||
// Don't try to read further than the end of the stream.
|
||||
$length = $size - $this->tell();
|
||||
|
@ -55,7 +55,7 @@ class YoutubeChunkStream implements StreamInterface
|
|||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return (string) $this->response->getBody();
|
||||
return (string)$this->response->getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue