It seems like $this->handler can also be of type boolean; however, parameter $stream of gzwrite() does only seem to accept resource, 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
It seems like $this->handler can also be of type boolean; however, parameter $stream of gzeof() does only seem to accept resource, 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
64
while (! gzeof(/** @scrutinizer ignore-type */ $this->handler)) {
Loading history...
65
// Read buffer-size bytes
66
$content .= gzread($this->handler, 4096); // read 4kb at a time
It seems like $this->handler can also be of type boolean; however, parameter $stream of gzread() does only seem to accept resource, 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
66
$content .= gzread(/** @scrutinizer ignore-type */ $this->handler, 4096); // read 4kb at a time
It seems like $this->handler can also be of type boolean; however, parameter $stream of gzclose() does only seem to accept resource, 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