It seems like $this->read(0, $this->fileSize) can also be of type false; however, parameter $data of HughCube\IpDb\Readers\PHPReader::__construct() does only seem to accept string, 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
51
return new PHPReader(/** @scrutinizer ignore-type */ $this->read(0, $this->fileSize));
It seems like $this->file can also be of type boolean; however, parameter $handle of fseek() 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
67
if (0 !== fseek(/** @scrutinizer ignore-type */ $this->file, $offset)) {
It seems like $this->file can also be of type boolean; however, parameter $handle of fread() 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