It seems like $this->length can also be of type null; however, parameter $limit of GuzzleHttp\Psr7\LimitStream::__construct() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
39
return new LimitStream($fp, /** @scrutinizer ignore-type */ $this->length, $this->start);
It seems like $this->start can also be of type null; however, parameter $offset of GuzzleHttp\Psr7\LimitStream::__construct() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
39
return new LimitStream($fp, $this->length, /** @scrutinizer ignore-type */ $this->start);